Marcus Meissner marcus@jet.franken.de writes:
- /* NOTE: In theory we would need to convert "hints" too.
* However the addrinfo fields that vary between Windows and UNIX are
* defined to be 0 or NULL for "hints" , so it is safe to use
* the windows struct.
*/
There is no guarantee that the structures have the same layout, so it's definitely not safe, you have to convert from the Windows format.