Just use winsock.h. There seems to be no wrapper for the unix-type-functions. But be careful some of the functions are a little bit different than the unix-ones. If you do so, dont forget to add the corresponding library when linking. Just add -lws2_32 do the linker-options in the project-options-tab of your project. ws-2_32 seems to stand for the new 32-bit Winsock2-Library. There is also a library named wsock32, but i did not try this one by now. Always keep in mind: To call a windows-dll you need the linker-information (means a linker-library) for it. Just look into the lib - directory (usually the name is very similar to the windows-dll-name).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anybody know why i can't use sys/sockets.h in Dev-C++ (couldn't find such file in the library)???
Just use winsock.h. There seems to be no wrapper for the unix-type-functions. But be careful some of the functions are a little bit different than the unix-ones. If you do so, dont forget to add the corresponding library when linking. Just add -lws2_32 do the linker-options in the project-options-tab of your project. ws-2_32 seems to stand for the new 32-bit Winsock2-Library. There is also a library named wsock32, but i did not try this one by now. Always keep in mind: To call a windows-dll you need the linker-information (means a linker-library) for it. Just look into the lib - directory (usually the name is very similar to the windows-dll-name).