Changes between Initial Version and Version 1 of Ticket #12319, comment 5
- Timestamp:
- Jan 1, 2017, 11:13:34 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12319, comment 5
initial v1 2 2 3 3 Two things, though: 4 * You should never use `sizeof(address.SockAddr())`, but instead `address.Length()`. The former will al readyreturn the length of struct sockaddr, which might not be adequate for anything but IPv4.4 * You should never use `sizeof(address.SockAddr())`, but instead `address.Length()`. The former will always return the length of struct sockaddr, which might not be adequate for anything but IPv4. 5 5 * There is no need to use an BNetworkAddressResolver; you can just use the BNetworkAddress constructor that takes the same arguments directly.