Differences From Artifact [c13e2bacd9]:
- File src/OFHTTPServer.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: 21372) [annotate] [blame] [check-ins using] [more...]
To Artifact [1d12ee9c38]:
- File
src/OFHTTPServer.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: 21397) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
982 983 984 985 986 987 988 | initWithSocket: acceptedSocket server: self] autorelease]; acceptedSocket.delegate = connection; [acceptedSocket asyncReadLine]; } | | | | 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 |
initWithSocket: acceptedSocket
server: self] autorelease];
acceptedSocket.delegate = connection;
[acceptedSocket asyncReadLine];
}
- (bool)socket: (OFIPStreamSocket *)sock
didAcceptSocket: (OFIPStreamSocket *)acceptedSocket
exception: (id)exception
{
if (exception != nil) {
if (![_delegate respondsToSelector:
@selector(server:didReceiveExceptionOnListeningSocket:)])
return false;
|
| ︙ | ︙ | |||
1009 1010 1011 1012 1013 1014 1015 | [self performSelector: @selector(of_handleAcceptedSocket:) onThread: thread withObject: acceptedSocket waitUntilDone: false]; } else #endif | | | 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 | [self performSelector: @selector(of_handleAcceptedSocket:) onThread: thread withObject: acceptedSocket waitUntilDone: false]; } else #endif [self of_handleAcceptedSocket: (OFTCPSocket *)acceptedSocket]; return true; } @end |