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...