#ifndef SOCKET_FUNCTIONS
#define SOCKET_FUNCTIONS


#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

int make_socket (unsigned short int port);
void init_sockaddr (struct sockaddr_in *name,
                 const char *hostname,
                 unsigned short int port);
int prepare_socket (int sock );


#endif
