flat assembler
Message board for the users of flat assembler.

Index > Windows > ws2_32.dll vs wsock32.dll

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 13100
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 10 May 2009, 15:05
hmm,
could i know where are their differences?

it seems ws2_32.dll contained more exported functions compared to wsock32.dll.

if somebody were to write a server software, does he needs to link both? if some of the exported functions name are similiar, how does our program decide which dll to calls?
Post 10 May 2009, 15:05
View user's profile Send private message Reply with quote
pal



Joined: 26 Aug 2008
Posts: 227
pal 10 May 2009, 17:23
winsock.dll, wsock32.dll is the first version of Winsock (well 1.1).

ws2_32.dll is the second version (2.x).

I believe you can only link to one of them at once. You should be standard link to ws2_32.dll as it is much easier, plus is more supported. The program decides which one to link to because you only link to one of them (I think). wsock32.dll acts as a wrapper for ws2_32.dll

Code:
http://tangentsoft.net/wskfaq/general.html#ws2additions
http://www.sockets.com/winsock2.htm
http://msdn.microsoft.com/en-us/library/ms740673(VS.85).aspx
    
Post 10 May 2009, 17:23
View user's profile Send private message Reply with quote
booter



Joined: 08 Dec 2006
Posts: 67
booter 15 May 2009, 02:59
Post 15 May 2009, 02:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.