No more Desc printing! :)
[ITFoundation.git] / ITInetSocket.h
index aad407f..edbfa64 100755 (executable)
@@ -9,6 +9,7 @@
 #import <Foundation/Foundation.h>
 #import <netinet/in.h>
 #import <netdb.h>
+#import "ITByteStream.h"
 
 enum {
     ITInetMaxConnections = 36
@@ -40,12 +41,16 @@ typedef enum {
     int port;
     id delegate;
     struct addrinfo *ai;
-    NSData *writeBuffer;
+    ITByteStream *readPipe, *writePipe;
     ITInetSocketState state;
+    NSArray *sarr;
 }
++(void)startAutoconnectingToService:(NSString*)type delegate:(id)d;
 -(id) initWithFD:(int)fd delegate:(id)d;
 -(id) initWithDelegate:(id)d;
 
 -(void) connectToHost:(NSString*)host onPort:(short)port;
+-(void) connectToHost:(NSString*)host onNamedPort:(NSString*)port;
+-(void) connectWithSockaddrArray:(NSArray*)arr;
 -(ITInetSocketState) state;
 @end