Piece of code testing the creation of client and server sockets in Linux