Split out code to compare addrinfo and sockaddr into it's own
function. The comparison cannot be done just byte-by-byte, because different parts of the sockaddr will be meaningful depending on the protocol. It looks like on some systems the library sets the unused parts to 0, but this is not reliable. IPv6 not implemented yet.
Showing
Please register or sign in to comment