Where winsock2.h in linux?

Jul 19, 2009 at 2:04pm
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 Jul 19, 2009 at 2:04pm
Jul 19, 2009 at 5:51pm
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.