Differences From Artifact [8b55b3abfe]:
- File src/OFHTTPClient.m — part of check-in [ba4a65d397] at 2020-04-11 16:31:49 on branch trunk — OFHTTP*: Use -[asyncReadLine:] for chunk size (user: js, size: 30105) [annotate] [blame] [check-ins using] [more...]
To Artifact [39a2892f3d]:
- File
src/OFHTTPClient.m
— part of check-in
[3dfe642dd3]
at
2020-04-24 00:21:43
on branch trunk
— Add OFIPStreamSocket
This is a new superclass for OFTCPSocket to allow sharing code with
other IP stream socket types, namely SCTP. (user: js, size: 30125) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
622 623 624 625 626 627 628 |
[sock asyncWriteString: constructRequestString(_request)];
} @catch (id e) {
[self raiseException: e];
return;
}
}
| | | | 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
[sock asyncWriteString: constructRequestString(_request)];
} @catch (id e) {
[self raiseException: e];
return;
}
}
- (void)socket: (OFIPStreamSocket *)sock
didConnectToHost: (OFString *)host
port: (uint16_t)port
exception: (id)exception
{
sock.delegate = self;
if (exception != nil) {
[self raiseException: exception];
return;
}
if ([_client->_delegate respondsToSelector:
@selector(client:didCreateSocket:request:)])
[_client->_delegate client: _client
didCreateSocket: (OFTCPSocket *)sock
request: _request];
[self performSelector: @selector(handleSocket:)
withObject: sock
afterDelay: 0];
}
|
| ︙ | ︙ |