X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/5fadb328bb7952174fcb7a6bb867c9c11f801df9..af1fcfcf8c78f03127d3929b49330cc191259487:/ITInetServerSocket.h diff --git a/ITInetServerSocket.h b/ITInetServerSocket.h index ef2d5e1..56b6bb6 100755 --- a/ITInetServerSocket.h +++ b/ITInetServerSocket.h @@ -11,26 +11,32 @@ @class ITInetSocket; @protocol ITInetServerSocketOwner -- (void)newClientJoined:(ITInetSocket*)client; +- (oneway void)newClientJoined:(ITInetSocket*)client; @end @interface ITInetServerSocket : NSObject { @private int sockfd; + volatile int dieflag; NSMutableSet *clients; NSNetService *service; id delegate; short port; NSString *rndType,*rndName; + NSTimer *timer; } - (id)init; - (id)initWithDelegate:(id)d; +- (BOOL)start; +- (void)stop; + - (int)sockfd; - (NSSet*)clients; - (id)delegate; - (short)port; + - (void)setServiceType:(NSString*)type useForPort:(BOOL)p; - (void)setServiceName:(NSString*)name; // generally the computer's AppleTalk name - (void)setPort:(short)p;