X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/2f6f5b098085f36298e23e690cf27b61b4e2ec36..f7db9c0e898822c50164af5abda849c16410e035:/ITInetServerSocket.h diff --git a/ITInetServerSocket.h b/ITInetServerSocket.h index 650748a..3185a66 100755 --- a/ITInetServerSocket.h +++ b/ITInetServerSocket.h @@ -15,17 +15,28 @@ @end @interface ITInetServerSocket : NSObject { + @private int sockfd; 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