Temporarily breaking the network sockets while I redo the whole thing
[ITFoundation.git] / ITInetSocket.h
1 //
2 //  ITInetSocket.h
3 //  ITFoundation
4 //
5 //  Created by Alexander Strange on Tue Feb 11 2003.
6 //  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 @protocol ITInetSocketOwner
12 - (void)requestCompleted:(NSString*)data;
13 @end
14
15 enum {
16     ITInetMaxConnections = 36;
17 };
18
19 @interface ITInetSocket : NSObject {
20     int sockfd;
21     int port;
22     NSString *destAddr;
23 }
24 // Init
25 -(id) initWithFD:(int)fd;
26 -(id) initWithFD:(int)fd delegate:(id)d;
27 -(id) initWithDelegate:(id)d;
28
29 +(NSArray*) socketsForRendezvousScan; //need args
30
31 // Mutators (some of these must be set before you can connect)
32 -(void) setPort:(int)port;
33 -(void) setPortViaServiceName:(NSString*)name;
34 -(void) setDest:(NSString*)dst;
35 @end