266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
if (listen(sock, 5) == -1)
@throw [OFListenFailedException newWithClass: isa
andBackLog: 5];
return self;
}
- (OFTCPSocket*)accept
{
OFTCPSocket *newsock;
struct sockaddr *addr;
socklen_t addrlen;
int s;
newsock = [OFTCPSocket socket];
|
|
|
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
if (listen(sock, 5) == -1)
@throw [OFListenFailedException newWithClass: isa
andBackLog: 5];
return self;
}
- (OFSocket*)accept
{
OFTCPSocket *newsock;
struct sockaddr *addr;
socklen_t addrlen;
int s;
newsock = [OFTCPSocket socket];
|