Revert "Adjust to new async API."
This reverts commit 6add878e280540ff5359704bed44bcc24c1e8be1. The API has been changed back in ObjFW. FossilOrigin-Name: 52008e00b1016a0073ce9bc325d7d2a7b736d6dbd2e9b5baa3e6ab34cb5cf5be
This commit is contained in:
parent
9fbc9c9b30
commit
54b163ac6a
1 changed files with 4 additions and 9 deletions
|
@ -529,16 +529,14 @@
|
||||||
|
|
||||||
- (BOOL)connection: (OFTCPSocket*)connection
|
- (BOOL)connection: (OFTCPSocket*)connection
|
||||||
didReceiveISO88591Line: (OFString*)line
|
didReceiveISO88591Line: (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];
|
||||||
[sock asyncReadLineWithTarget: self
|
[sock asyncReadLineWithTarget: self
|
||||||
selector: @selector(connection:
|
selector: @selector(connection:
|
||||||
didReceiveLine:context:
|
didReceiveLine:
|
||||||
exception:)
|
exception:)];
|
||||||
context: nil];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NO;
|
return NO;
|
||||||
|
@ -546,7 +544,6 @@
|
||||||
|
|
||||||
- (BOOL)connection: (OFTCPSocket*)connection
|
- (BOOL)connection: (OFTCPSocket*)connection
|
||||||
didReceiveLine: (OFString*)line
|
didReceiveLine: (OFString*)line
|
||||||
context: (id)context
|
|
||||||
exception: (OFException*)exception
|
exception: (OFException*)exception
|
||||||
{
|
{
|
||||||
if (line != nil) {
|
if (line != nil) {
|
||||||
|
@ -559,8 +556,7 @@
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(connection:
|
selector: @selector(connection:
|
||||||
didReceiveISO88591Line:
|
didReceiveISO88591Line:
|
||||||
context:exception:)
|
exception:)];
|
||||||
context: nil];
|
|
||||||
|
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
@ -569,8 +565,7 @@
|
||||||
{
|
{
|
||||||
[sock asyncReadLineWithTarget: self
|
[sock asyncReadLineWithTarget: self
|
||||||
selector: @selector(connection:didReceiveLine:
|
selector: @selector(connection:didReceiveLine:
|
||||||
context:exception:)
|
exception:)];
|
||||||
context: nil];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue