Fix method signature mismatch
FossilOrigin-Name: 75e955fa17428630e13a1e86609a24456dbb43ca823b8d05e3543e8d3be7e1e7
This commit is contained in:
parent
b67f81d8df
commit
b445394724
1 changed files with 21 additions and 19 deletions
|
@ -50,7 +50,7 @@
|
||||||
return [[[self alloc] init] autorelease];
|
return [[[self alloc] init] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
- init
|
- (instancetype)init
|
||||||
{
|
{
|
||||||
self = [super init];
|
self = [super init];
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
objc_autoreleasePoolPop(pool);
|
objc_autoreleasePoolPop(pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)IRC_processLine: (OFString *)line
|
- (void)irc_processLine: (OFString *)line
|
||||||
{
|
{
|
||||||
OFArray *components;
|
OFArray *components;
|
||||||
OFString *action = nil;
|
OFString *action = nil;
|
||||||
|
@ -277,7 +277,7 @@
|
||||||
|
|
||||||
[OFTimer scheduledTimerWithTimeInterval: _pingInterval
|
[OFTimer scheduledTimerWithTimeInterval: _pingInterval
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(IRC_sendPing)
|
selector: @selector(irc_sendPing)
|
||||||
repeats: true];
|
repeats: true];
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -550,7 +550,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)IRC_sendPing
|
- (void)irc_sendPing
|
||||||
{
|
{
|
||||||
[_pingData release];
|
[_pingData release];
|
||||||
[_pingTimer release];
|
[_pingTimer release];
|
||||||
|
@ -561,11 +561,11 @@
|
||||||
_pingTimer = [[OFTimer
|
_pingTimer = [[OFTimer
|
||||||
scheduledTimerWithTimeInterval: _pingTimeout
|
scheduledTimerWithTimeInterval: _pingTimeout
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(IRC_pingTimeout)
|
selector: @selector(irc_pingTimeout)
|
||||||
repeats: false] retain];
|
repeats: false] retain];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)IRC_pingTimeout
|
- (void)irc_pingTimeout
|
||||||
{
|
{
|
||||||
if ([_delegate respondsToSelector: @selector(connectionWasClosed:)])
|
if ([_delegate respondsToSelector: @selector(connectionWasClosed:)])
|
||||||
[_delegate connectionWasClosed: self];
|
[_delegate connectionWasClosed: self];
|
||||||
|
@ -579,20 +579,21 @@
|
||||||
{
|
{
|
||||||
void *pool = objc_autoreleasePoolPush();
|
void *pool = objc_autoreleasePoolPush();
|
||||||
|
|
||||||
[self IRC_processLine: line];
|
[self irc_processLine: line];
|
||||||
|
|
||||||
objc_autoreleasePoolPop(pool);
|
objc_autoreleasePoolPop(pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (bool)socket: (OFTCPSocket *)socket
|
- (bool)irc_socket: (OFTCPSocket *)socket
|
||||||
didReceiveWronglyEncodedLine: (OFString *)line
|
didReceiveWronglyEncodedLine: (OFString *)line
|
||||||
|
context: (id)context
|
||||||
exception: (OFException *)exception
|
exception: (OFException *)exception
|
||||||
{
|
{
|
||||||
if (line != nil) {
|
if (line != nil) {
|
||||||
[self IRC_processLine: line];
|
[self irc_processLine: line];
|
||||||
[socket asyncReadLineWithTarget: self
|
[socket asyncReadLineWithTarget: self
|
||||||
selector: @selector(socket:
|
selector: @selector(irc_socket:
|
||||||
didReceiveLine:
|
didReceiveLine:context:
|
||||||
exception:)
|
exception:)
|
||||||
context: nil];
|
context: nil];
|
||||||
}
|
}
|
||||||
|
@ -600,12 +601,13 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (bool)socket: (OFTCPSocket *)socket
|
- (bool)irc_socket: (OFTCPSocket *)socket
|
||||||
didReceiveLine: (OFString *)line
|
didReceiveLine: (OFString *)line
|
||||||
exception: (OFException *)exception
|
context: (id)context
|
||||||
|
exception: (OFException *)exception
|
||||||
{
|
{
|
||||||
if (line != nil) {
|
if (line != nil) {
|
||||||
[self IRC_processLine: line];
|
[self irc_processLine: line];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -613,9 +615,9 @@
|
||||||
[socket
|
[socket
|
||||||
asyncReadLineWithEncoding: _fallbackEncoding
|
asyncReadLineWithEncoding: _fallbackEncoding
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(socket:
|
selector: @selector(irc_socket:
|
||||||
didReceiveWronglyEncodedLine:
|
didReceiveWronglyEncodedLine:
|
||||||
exception:)
|
context:exception:)
|
||||||
context: nil];
|
context: nil];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -636,8 +638,8 @@
|
||||||
- (void)handleConnection
|
- (void)handleConnection
|
||||||
{
|
{
|
||||||
[_socket asyncReadLineWithTarget: self
|
[_socket asyncReadLineWithTarget: self
|
||||||
selector: @selector(socket:didReceiveLine:
|
selector: @selector(irc_socket:didReceiveLine:
|
||||||
exception:)
|
context:exception:)
|
||||||
context: nil];
|
context: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue