The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: aker on June 08, 2010, 07:10:09 AM

Title: ws2_32.dll or wsock32.dll?
Post by: aker on June 08, 2010, 07:10:09 AM
I need inet_ntoa function, but which one is better, ws2_32.dll or wsock32.dll?
Title: Re: ws2_32.dll or wsock32.dll?
Post by: Ghandi on June 08, 2010, 10:27:08 AM
Doesn't wsock32.dll just forward most functions to ws2_32.dll on Winsock 2 machines? Keeping the wsock32.dll reference will mean compatibility with older (Winsock 1.x) OS too wont it?

HR,
Ghandi
Title: Re: ws2_32.dll or wsock32.dll?
Post by: Richard van Petrov on June 08, 2010, 09:57:04 PM
Use ws2_32.dll, wsock32 is old.