cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Where winsock2.h in linux?
Where winsock2.h in linux?
Jul 19, 2009 at 2:04pm UTC
ghiyasimehr
(1)
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 UTC
Jul 19, 2009 at 5:51pm UTC
firedraco
(6243)
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.