Differences From Artifact [f48a1756ef]:
- File
src/OFTCPSocket.m
— part of check-in
[12b8a7552e]
at
2016-03-27 23:10:53
on branch trunk
— Add socket support for Nintendo 3DS
This removes the port registry that existed for the Wii and instead
tries binding to random ports in a loop until it succeeds or errno is
not EADDRINUSE. This is done for the Wii and Nintendo 3DS now.This also includes several other socket-related cleanups. (user: js, size: 14809) [annotate] [blame] [check-ins using]
To Artifact [373ad5cf82]:
- File src/OFTCPSocket.m — part of check-in [e840997cc8] at 2016-05-06 20:54:33 on branch trunk — Make GCC happy with -Wsign-compare (user: js, size: 14825) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
556 557 558 559 560 561 562 | # if defined(HAVE_FCNTL) && defined(FD_CLOEXEC) if ((flags = fcntl(client->_socket, F_GETFD, 0)) != -1) fcntl(client->_socket, F_SETFD, flags | FD_CLOEXEC); # endif #endif | | > | 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | # if defined(HAVE_FCNTL) && defined(FD_CLOEXEC) if ((flags = fcntl(client->_socket, F_GETFD, 0)) != -1) fcntl(client->_socket, F_SETFD, flags | FD_CLOEXEC); # endif #endif assert(client->_addressLength <= (socklen_t)sizeof(struct sockaddr_storage)); if (client->_addressLength != sizeof(struct sockaddr_storage)) { @try { client->_address = [client resizeMemory: client->_address size: client->_addressLength]; } @catch (OFOutOfMemoryException *e) { |
︙ | ︙ |