RSS

(root)/iphone/common : 62 : source/SocketMessenger.m

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to source/SocketMessenger.m

Dömötör Gulyás
2010-04-09 13:30:00
Revision ID: dognotdog@gmail.com-20100409113000-e4u8j6nv2ohkx43k
adds blank.png; renames ESShader allocation method; minor tweak of Zeroconf internals

Show diffs side-by-side

added added

removed removed

35
35
 
36
36
#include <unistd.h>
37
37
#include <stdint.h>
38
 
#include <sys/socket.h>
39
38
#include <fcntl.h>
 
39
#include <sys/types.h>
 
40
#include <sys/time.h>
40
41
#include <termios.h>
41
42
#include <netinet/in.h>
 
43
#include <sys/socket.h>
42
44
#include <arpa/inet.h>
43
 
#include <sys/types.h>
44
45
#include <netdb.h>
45
 
#include <netinet/in.h>
46
 
#include <sys/time.h>
47
46
 
48
47
#import "SocketMessenger.h"
49
48
 
738
737
        if(![name length])
739
738
                name = @""; //Will use default Bonjour name, e.g. the name assigned to the device in iTunes
740
739
        
741
 
        assert([protocol length] && server.listenSocket);
 
740
        assert([protocol length] && (server.listenSocket != -1));
742
741
        
743
 
        NSLog(@"tappity port: %d", server.portnum);
 
742
        NSLog(@"Bonjour port: %d", server.portnum);
744
743
 
745
744
        [server.netService stop];
746
745
        [server.netService release];

Loggerhead 1.17 is a web-based interface for Bazaar branches