146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
bool sawHost = false, sawContentLength = false, sawContentType = false;
bool sawUserAgent = false;
char buffer[5];
[_condition lock];
listener = [OFTCPSocket socket];
address = [listener bindToHost: @"127.0.0.1" port: 0];
_port = OFSocketAddressIPPort(&address);
[listener listen];
[_condition signal];
[_condition unlock];
client = [listener accept];
|
>
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
bool sawHost = false, sawContentLength = false, sawContentType = false;
bool sawUserAgent = false;
char buffer[5];
[_condition lock];
listener = [OFTCPSocket socket];
listener.usesMPTCP = true;
address = [listener bindToHost: @"127.0.0.1" port: 0];
_port = OFSocketAddressIPPort(&address);
[listener listen];
[_condition signal];
[_condition unlock];
client = [listener accept];
|