Search code examples
cnetwork-programming

Can't find winsock.c or winsock implementation


I want to read the source code of winsock, but I only see header which is winsock.h. where is winsock.c located I need to read the source code implementation so bad.


Solution

  • As to my knowledge Microsoft never released source code for that library. The best you can do is use Ida pro or simillar software to decompile Ws2_32.dll or Ws2_32.lib. That is the closest you will get to the source code, but it will be in pseudo C.