Delegate & Notifications
Status: Alpha
Brought to you by:
stevenf
Hi! SmallSockets need delegates. It would make coding
much easier. You could assign a socket to an object or
handle all sockets via one object.
Possible Delegate methods:
- (void)socketDidConnectToHost:(NSURL *)aHost
atPort:(int)port
- (NSNumber *)readBytes:(NSData *)data
- (void)availableData:(NSData *)data
- (void)availableString:(NSString *)string
- (BOOL)clearDataOfSocket:(Socket *)aSocket
whatever...
Cheers, Thilo