Where winsock2.h in linux?

I use SUSE 11.1 .

I have a C++ program that is write for windows but i want to run this on linux.

It is not a big program with many lines, but in it, is used winsock2.h header that i do not know what is replacement header file instead of it on linux.

please help me.
Thanks.
Last edited on
Linux doesn't have winsock2.h, or winsock at all for that matter. It's called Winsock because of Win for Windows, and sock for sockets.

As for using sockets with Linux, try here:
http://www.linuxhowtos.org/C_C++/socket.htm
Topic archived. No new replies allowed.