Menu

#2 Delegate & Notifications

open
nobody
None
5
2002-05-12
2002-05-12
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.