Adjust to new async API.
FossilOrigin-Name: 0c43f5d8caf2123f9dd3f4a75d01a53f8c24fc2dba18fdf7094505676a27e501
This commit is contained in:
parent
2d705754fd
commit
279f33ec61
1 changed files with 9 additions and 4 deletions
|
@ -487,14 +487,16 @@
|
|||
|
||||
- (BOOL)connection: (OFTCPSocket*)connection
|
||||
didReceiveISO88591Line: (OFString*)line
|
||||
context: (id)context
|
||||
exception: (OFException*)exception
|
||||
{
|
||||
if (line != nil) {
|
||||
[self processLine: line];
|
||||
[sock asyncReadLineWithTarget: self
|
||||
selector: @selector(connection:
|
||||
didReceiveLine:
|
||||
exception:)];
|
||||
didReceiveLine:context:
|
||||
exception:)
|
||||
context: nil];
|
||||
}
|
||||
|
||||
return NO;
|
||||
|
@ -502,6 +504,7 @@
|
|||
|
||||
- (BOOL)connection: (OFTCPSocket*)connection
|
||||
didReceiveLine: (OFString*)line
|
||||
context: (id)context
|
||||
exception: (OFException*)exception
|
||||
{
|
||||
if (line != nil) {
|
||||
|
@ -514,7 +517,8 @@
|
|||
target: self
|
||||
selector: @selector(connection:
|
||||
didReceiveISO88591Line:
|
||||
exception:)];
|
||||
context:exception:)
|
||||
context: nil];
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
@ -523,7 +527,8 @@
|
|||
{
|
||||
[sock asyncReadLineWithTarget: self
|
||||
selector: @selector(connection:didReceiveLine:
|
||||
exception:)];
|
||||
context:exception:)
|
||||
context: nil];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue