+typedef enum {
+ ITInetSocketConnecting,
+ ITInetSocketListening,
+ ITInetSocketReading,
+ ITInetSocketWriting,
+ ITInetSocketDisconnected
+} ITInetSocketState;
+
+typedef enum {
+ ITInetHostNotFound,
+ ITInetConnectionDropped,
+ ITInetCouldNotConnect,
+} ITInetSocketError;
+
+@protocol ITInetSocketOwner
+- (void) dataRecieved:(in NSData*)data;
+- (void) errorOccured:(ITInetSocketError)err during:(ITInetSocketState)state;
+- (void) finishedConnecting;
+@end