27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
@class IRCConnection;
@class IRCUser;
@protocol IRCConnectionDelegate <OFObject>
@optional
- (void)connection: (IRCConnection *)connection
didCreateSocket: (OF_KINDOF(OFTCPSocket) *)socket;
- (void)connection: (IRCConnection *)connection
didReceiveLine: (OFString *)line;
- (void)connection: (IRCConnection *)connection
didSendLine: (OFString *)line;
- (void)connectionWasEstablished: (IRCConnection *)connection;
- (void)connection: (IRCConnection *)connection
didSeeUser: (IRCUser *)user
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
@class IRCConnection;
@class IRCUser;
@protocol IRCConnectionDelegate <OFObject>
@optional
- (void)connection: (IRCConnection *)connection
didCreateSocket: (OF_KINDOF(OFTCPSocket *))socket;
- (void)connection: (IRCConnection *)connection
didReceiveLine: (OFString *)line;
- (void)connection: (IRCConnection *)connection
didSendLine: (OFString *)line;
- (void)connectionWasEstablished: (IRCConnection *)connection;
- (void)connection: (IRCConnection *)connection
didSeeUser: (IRCUser *)user
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
didReceiveNamesForChannel: (OFString *)channel;
- (void)connectionWasClosed: (IRCConnection *)connection;
@end
@interface IRCConnection: OFObject
{
Class _socketClass;
OF_KINDOF(OFTCPSocket) *_Nullable _socket;
OFString *_Nullable _server;
uint16_t _port;
OFString *_Nullable _nickname, *_Nullable _username;
OFString *_Nullable _realname;
OFMutableDictionary OF_GENERIC(OFString *, OFMutableSet *) *_channels;
id <IRCConnectionDelegate> _Nullable _delegate;
of_string_encoding_t _fallbackEncoding;
|
|
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
didReceiveNamesForChannel: (OFString *)channel;
- (void)connectionWasClosed: (IRCConnection *)connection;
@end
@interface IRCConnection: OFObject
{
Class _socketClass;
OF_KINDOF(OFTCPSocket *) _Nullable _socket;
OFString *_Nullable _server;
uint16_t _port;
OFString *_Nullable _nickname, *_Nullable _username;
OFString *_Nullable _realname;
OFMutableDictionary OF_GENERIC(OFString *, OFMutableSet *) *_channels;
id <IRCConnectionDelegate> _Nullable _delegate;
of_string_encoding_t _fallbackEncoding;
|