Changes between Initial Version and Version 1 of Ticket #12319, comment 5


Ignore:
Timestamp:
Jan 1, 2017, 11:13:34 PM (8 years ago)
Author:
axeld

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12319, comment 5

    initial v1  
    22
    33Two things, though:
    4 * You should never use `sizeof(address.SockAddr())`, but instead `address.Length()`. The former will already return 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.
    55* There is no need to use an BNetworkAddressResolver; you can just use the BNetworkAddress constructor that takes the same arguments directly.