X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/2f6f5b098085f36298e23e690cf27b61b4e2ec36..086eb4c9abbda3c5d5f74c07800ad5cb04a50505:/ITInetServerSocket.h diff --git a/ITInetServerSocket.h b/ITInetServerSocket.h index 650748a..56b6bb6 100755 --- a/ITInetServerSocket.h +++ b/ITInetServerSocket.h @@ -11,21 +11,33 @@ @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)initWithServiceName:(NSString*)name delegate:(id)d; -- (id)initWithPort:(NSNumber*)port rendezvousName:(NSString*)name delegate:(id)d; +- (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; @end