Permalink
Browse files

Turn informal delegate protocol into a formal one.

  • Loading branch information...
1 parent d9a8e48 commit dc7f0c5124b32724fdda004a5f94f643b552217b @uliwitness committed Jan 25, 2011
Showing with 8 additions and 7 deletions.
  1. +8 −7 ULINetSocket.h
View
@@ -106,11 +106,12 @@
#pragma mark -
-@interface NSObject (NetSocketDelegate)
-- (void)netsocketConnected:(NetSocket*)inNetSocket;
-- (void)netsocket:(NetSocket*)inNetSocket connectionTimedOut:(NSTimeInterval)inTimeout;
-- (void)netsocketDisconnected:(NetSocket*)inNetSocket;
-- (void)netsocket:(NetSocket*)inNetSocket connectionAccepted:(NetSocket*)inNewNetSocket;
-- (void)netsocket:(NetSocket*)inNetSocket dataAvailable:(unsigned)inAmount;
-- (void)netsocketDataSent:(NetSocket*)inNetSocket;
+@protocol ULINetSocketDelegate
+@optional
+-(void) netsocketConnected: (ULINetSocket*)inNetSocket;
+-(void) netsocket: (ULINetSocket*)inNetSocket connectionTimedOut: (NSTimeInterval)inTimeout;
+-(void) netsocketDisconnected: (ULINetSocket*)inNetSocket;
+-(void) netsocket: (ULINetSocket*)inNetSocket connectionAccepted: (ULINetSocket*)inNewNetSocket;
+-(void) netsocket: (ULINetSocket*)inNetSocket dataAvailable: (unsigned)inAmount;
+-(void) netsocketDataSent: (ULINetSocket*)inNetSocket;
@end

0 comments on commit dc7f0c5

Please sign in to comment.