#ifndef _TCPH #define _TCPH #include #include #include #include #include #include #include #include #include #include #include #define MAX_LUNG_TCPMESS 80 int config_tcp_port_client(int *pfd); int config_tcp_port_server(int serv_addr,int *pfd); void unconfig_tcp_port(int fd); void tcp_port_sign(int fd); int cl_to_ser_connection(char *server_name,int serv_addr,int sk); int cl_to_ser_connection_withwait(char *server_name,int serv_addr,int sk); int ser_to_cl_connection (int fd, int * pmsgsock, pid_t * childproc_num); int ser_to_cl_connection_withwait (int fd, int * pmsgsock, pid_t * childproc_num); int invia_pacco_tcp(void *pnt,int dim,int fd); int getethaddr(char * filename, const char *ethname); #endif