6 # include <sys/types.h>
8 # include <sys/socket.h>
10 # include <netinet/in.h>
20 int sock_open( int socket_type, char *protocol,
21 char *host, char *service, int port,
23 int sock_cli_send( int sock, void *m, int size );
24 int sock_cli_recv( int sock, void *m, int size );
25 int sock_srv_recv( int sock, void *m, int size,
26 struct sockaddr_in *addr, int *namelen );
27 int sock_srv_send( int sock, void *m, int size,
28 struct sockaddr_in *addr, int namelen );
29 void set_cli_recv_timeout( int miliseconds );
30 void set_srv_send_delay ( int miliseconds );
31 int poll_socket( int sock, int miliseconds );
38 void set_cli_recv_timeout();
39 void set_srv_send_delay ();
45 int sock_cli_crc_send( int sock, void *m, int size );
46 int sock_cli_crc_recv( int sock, void *m, int size );
47 int sock_srv_crc_recv( int sock, void *m, int size,
48 struct sockaddr_in *addr, int *namelen );
49 int sock_srv_crc_send( int sock, void *m, int size,
50 struct sockaddr_in *addr, int namelen );
52 int sock_cli_crc_send();
53 int sock_cli_crc_recv();
54 int sock_srv_crc_recv();
55 int sock_srv_crc_send();