Differences From Artifact [e6378dfef4]:
- File src/OFTCPSocket.m — part of check-in [72db6b3c6f] at 2022-10-22 16:00:37 on branch trunk — Split OFBindSocketFailedException into subclasses (user: js, size: 11408) [annotate] [blame] [check-ins using] [more...]
To Artifact [74ced9f7d1]:
- File
src/OFTCPSocket.m
— part of check-in
[a54730b88f]
at
2022-10-22 18:41:45
on branch trunk
— OFSocket: Don't combine port for IP and IPX
While it works for those two protocols, it's a bad precedent as other
protocols have different types for ports. (user: js, size: 11410) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
307 308 309 310 311 312 313 | object: self]; socketAddresses = [[OFThread DNSResolver] resolveAddressesForHost: host addressFamily: OFSocketAddressFamilyAny]; address = *(OFSocketAddress *)[socketAddresses itemAtIndex: 0]; | | | 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | object: self]; socketAddresses = [[OFThread DNSResolver] resolveAddressesForHost: host addressFamily: OFSocketAddressFamilyAny]; address = *(OFSocketAddress *)[socketAddresses itemAtIndex: 0]; OFSocketAddressSetIPPort(&address, port); if ((_socket = socket( ((struct sockaddr *)&address.sockaddr)->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0)) == OFInvalidSocketHandle) @throw [OFBindIPSocketFailedException exceptionWithHost: host port: port |
︙ | ︙ |