Differences From Artifact [a68be5271e]:
- File src/IRCConnection.h — part of check-in [85f791ce81] at 2016-05-07 11:45:57 on branch trunk — Update copyright (user: js, size: 4057) [annotate] [blame] [check-ins using]
To Artifact [de62d2cefb]:
- File
src/IRCConnection.h
— part of check-in
[38de3de8ed]
at
2017-01-22 17:24:18
on branch trunk
— IRCConnection: Make the socket class configurable
This makes using TLS possible. (user: js, size: 4227) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | @class IRCConnection; @class IRCUser; @protocol IRCConnectionDelegate <OFObject> @optional - (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 joinChannel: (OFString*)channel; | > > | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | @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 joinChannel: (OFString*)channel; |
︙ | ︙ | |||
68 69 70 71 72 73 74 | - (void)connection: (IRCConnection*)connection didReceiveNamesForChannel: (OFString*)channel; - (void)connectionWasClosed: (IRCConnection*)connection; @end @interface IRCConnection: OFObject { | > | > | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - (void)connection: (IRCConnection*)connection didReceiveNamesForChannel: (OFString*)channel; - (void)connectionWasClosed: (IRCConnection*)connection; @end @interface IRCConnection: OFObject { Class _socketClass; OF_KINDOF(OFTCPSocket) *_socket; OFString *_server; uint16_t _port; OFString *_nickname, *_username, *_realname; OFMutableDictionary *_channels; id <IRCConnectionDelegate> _delegate; } @property (assign) Class socketClass; @property (copy) OFString *server; @property (assign) uint16_t port; @property (copy) OFString *nickname, *username, *realname; @property (assign) id <IRCConnectionDelegate> delegate; @property (readonly, retain) OFTCPSocket *socket; + (instancetype)connection; |
︙ | ︙ |