Differences From Artifact [0378e7d3f9]:
- File
src/OFTCPSocket.m
— part of check-in
[6e9ee122eb]
at
2018-10-07 02:06:46
on branch trunk
— Remove resolver.m
Instead, OFDNSResolver is used for everything now. (user: js, size: 28448) [annotate] [blame] [check-ins using]
To Artifact [44b284db49]:
- File src/OFTCPSocket.m — part of check-in [0036c4c22e] at 2018-10-27 21:14:22 on branch trunk — Fix compilation with newer MinGW-w64 versions (user: js, size: 28466) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
755 756 757 758 759 760 761 | } - (int)of_socketError { int errNo; socklen_t len = sizeof(errNo); | | > | 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 | } - (int)of_socketError { int errNo; socklen_t len = sizeof(errNo); if (getsockopt(_socket, SOL_SOCKET, SO_ERROR, (char *)&errNo, &len) != 0) return of_socket_errno(); return errNo; } - (void)connectToHost: (OFString *)host port: (uint16_t)port |
︙ | ︙ | |||
986 987 988 989 990 991 992 | _socket = INVALID_SOCKET; @throw [OFBindFailedException exceptionWithHost: host port: port socket: self errNo: EAFNOSUPPORT]; } | | < > | 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 | _socket = INVALID_SOCKET; @throw [OFBindFailedException exceptionWithHost: host port: port socket: self errNo: EAFNOSUPPORT]; } #else closesocket(_socket); _socket = INVALID_SOCKET; @throw [OFBindFailedException exceptionWithHost: host port: port socket: self errNo: EADDRNOTAVAIL]; #endif } - (void)listen { [self listenWithBacklog: SOMAXCONN]; } |
︙ | ︙ |