If you're using Windows then you need to include winsock.h or winsock2.h depending on which version your coding in. You will also need to include the libraries: -l"wsock32" for version 1.1 and -l"ws2_32" for version 2.
BlakJak :]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
where can i get the socket.h or how can i use sockets with DevC++?
For windows you have...
winsock
winsock2
in devcpp include folder.
If you need some programming info about sockets?.
Here is one of many places to start:
http://www.peterindia.com/SocketProgrammingResources.html
j@ck_
If you're using Windows then you need to include winsock.h or winsock2.h depending on which version your coding in. You will also need to include the libraries: -l"wsock32" for version 1.1 and -l"ws2_32" for version 2.
BlakJak :]
socket.h is the Unix C header for Unix socket programming. either port it to windows, or try to compile with cygwin