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
|
- (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 processLine: line];
|
[self processLine: line];
|
||||||
[sock asyncReadLineWithTarget: self
|
[sock asyncReadLineWithTarget: self
|
||||||
selector: @selector(connection:
|
selector: @selector(connection:
|
||||||
didReceiveLine:
|
didReceiveLine:context:
|
||||||
exception:)];
|
exception:)
|
||||||
|
context: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
return NO;
|
return NO;
|
||||||
|
@ -502,6 +504,7 @@
|
||||||
|
|
||||||
- (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) {
|
||||||
|
@ -514,7 +517,8 @@
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(connection:
|
selector: @selector(connection:
|
||||||
didReceiveISO88591Line:
|
didReceiveISO88591Line:
|
||||||
exception:)];
|
context:exception:)
|
||||||
|
context: nil];
|
||||||
|
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
@ -523,7 +527,8 @@
|
||||||
{
|
{
|
||||||
[sock asyncReadLineWithTarget: self
|
[sock asyncReadLineWithTarget: self
|
||||||
selector: @selector(connection:didReceiveLine:
|
selector: @selector(connection:didReceiveLine:
|
||||||
exception:)];
|
context:exception:)
|
||||||
|
context: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue