1 /* Loglan82 Compiler&Interpreter
2 Copyright (C) 1981-1993 Institute of Informatics, University of Warsaw
3 Copyright (C) 1993, 1994 LITA, Pau
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 contacts: Andrzej.Salwicki@univ-pau.fr
22 LITA Departement d'Informatique
24 Avenue de l'Universite
26 tel. ++33 59923154 fax. ++33 59841696
28 =======================================================================
41 #include <sys/types.h>
43 #include <sys/socket.h>
45 #include <netinet/in.h>
51 int host_addr( char * /* host name */, struct sockaddr_in * );
52 int sock_open( int socket_type, char *protocol, char *service, int port );
53 int sock_recv( int sock, void *buf, int size, struct sockaddr_in *addr );
54 int sock_send( int sock, void *buf, int size, struct sockaddr_in *addr );
55 void set_send_delay ( int miliseconds );
56 int sock_poll( int sock, int miliseconds );
57 /* sock == -1 -> equivalent of sleep */
58 /* miliseconds < 0 -> waits indefinitely */
64 void set_send_delay();
70 int sock_crc_recv( int sock, void *m, int size, struct sockaddr *addr );
71 int sock_crc_send( int sock, void *m, int size, struct sockaddr *addr );
73 int sock_srv_crc_recv();
74 int sock_srv_crc_send();