ObjIRC  Check-in [8e20888525]

Overview
Comment:Export the internal OFTCPSocket so it can be observed externally.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8e20888525708fdd3e9a937da52d4b6d7d2f0366cd35f1a4e8ca3fc9e62047af
User & Date: js on 2011-09-14 23:13:38
Other Links: manifest | tags
Context
2011-09-14
23:38
Make non-blocking processing possible. check-in: 8b48789571 user: js tags: trunk
23:13
Export the internal OFTCPSocket so it can be observed externally. check-in: 8e20888525 user: js tags: trunk
23:13
Add ObjIRC.h. check-in: 3934bad84c user: js tags: trunk
Changes

Modified src/IRCConnection.h from [23abeda3ff] to [1b8e55ec87].

80
81
82
83
84
85
86

87
88
89
90
91
92
93
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94







+







	id <IRCConnectionDelegate, OFObject> delegate;
}

@property (copy) OFString *server;
@property (assign) uint16_t port;
@property (copy) OFString *nickname, *username, *realname;
@property (retain) id <IRCConnectionDelegate, OFObject> delegate;
@property (retain, getter=socket) OFTCPSocket *sock;

- (void)sendLine: (OFString*)line;
- (void)sendLineWithFormat: (OFConstantString*)line, ...;
- (void)connect;
- (void)disconnect;
- (void)disconnectWithReason: (OFString*)reason;
- (void)joinChannel: (OFString*)channelName;

Modified src/IRCConnection.m from [e9e2fb6122] to [590ed4cde0].

31
32
33
34
35
36
37
38

39
40
41
42
43
44
45
31
32
33
34
35
36
37

38
39
40
41
42
43
44
45







-
+







#import <ObjFW/OFInvalidEncodingException.h>

#import "IRCConnection.h"
#import "IRCUser.h"
#import "IRCChannel.h"

@implementation IRCConnection
@synthesize server, port, nickname, username, realname, delegate;
@synthesize server, port, nickname, username, realname, delegate, sock;

- init
{
	self = [super init];

	@try {
		channels = [[OFMutableDictionary alloc] init];