Differences From Artifact [f3c3c9897f]:
- File
src/OFSequencedPacketSocket.m
— part of check-in
[25adea9a23]
at
2022-08-06 21:14:31
on branch trunk
— Don't use struct sockaddr in OFSocketAddress
struct sockaddr can contain a variable length array, which breaks the
union. (user: js, size: 11092) [annotate] [blame] [check-ins using] [more...]
To Artifact [a8c0e899a1]:
- File src/OFSequencedPacketSocket.m — part of check-in [3da26ce4d2] at 2022-10-17 18:36:20 on branch trunk — Document more exceptions (user: js, size: 11193) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
314 315 316 317 318 319 320 | errNo: OFSocketErrNo()]; _listening = true; } - (instancetype)accept { | | < > > > > | 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | errNo: OFSocketErrNo()]; _listening = true; } - (instancetype)accept { OFSequencedPacketSocket *client; #if (!defined(HAVE_PACCEPT) && !defined(HAVE_ACCEPT4)) || !defined(SOCK_CLOEXEC) # if defined(HAVE_FCNTL) && defined(FD_CLOEXEC) int flags; # endif #endif if (_socket == OFInvalidSocketHandle) @throw [OFNotOpenException exceptionWithObject: self]; client = [[[[self class] alloc] init] autorelease]; client->_remoteAddress.length = (socklen_t)sizeof(client->_remoteAddress.sockaddr); #if defined(HAVE_PACCEPT) && defined(SOCK_CLOEXEC) if ((client->_socket = paccept(_socket, (struct sockaddr *)&client->_remoteAddress.sockaddr, &client->_remoteAddress.length, NULL, SOCK_CLOEXEC)) == |
︙ | ︙ |