Making ITAppleEventCenter use ITDebugLog for all debugging things. This
[ITFoundation.git] / ITInetServerSocket.h
index 650748a..56b6bb6 100755 (executable)
 @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