You need the following libraries:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
and you use the following system calls:
socket() -> bind() -> listen() -> accept()
This is the order in which they will need to be used. I suggest that you look up...
Once you have your linux machine up and running, and you can compile programs, the way to start with the sockets idea is this:
First of all you need to include <sys/types.h>, <sys/socket.h>, <netinet/in.h> and <arpa/inet.h>
fd=socket(proto,type,?)
creates a socket and returns a file...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.