Sockets on RH 9.0
I am trying to write a very simple sockets application. These are the files I am including.
Anything calls to anything defined in the sockets.h is ...undefined.
I have inclueded the following.
I get messages about 'socket' being undeclared as well as 'closesocket'. Can someone post a simple example of just creating and then closing a socking in Linux. I'm using RedHat 9.0 and the Anjuta IDE.
I am coming from the windows world were I would include "sockets.h" and link to the wsock_32.lib. What is the equiv. procedure in the Linux/Unix world?