Added upstream from http://ftp.icm.edu.pl/pub/loglan/
[loglan.git] / sources / new-s5r4 / tcpip.h
1      /* Loglan82 Compiler&Interpreter
2      Copyright (C) 1981-1993 Institute of Informatics, University of Warsaw
3      Copyright (C)  1993, 1994 LITA, Pau
4      
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.
9      
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.
14      
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.
18
19  contacts:  Andrzej.Salwicki@univ-pau.fr
20
21 or             Andrzej Salwicki
22                 LITA   Departement d'Informatique
23                 Universite de Pau
24                 Avenue de l'Universite
25                 64000 Pau   FRANCE
26                  tel.  ++33 59923154    fax. ++33 59841696
27
28 =======================================================================
29 */
30
31 #ifndef __TCPIP_H__
32 #define __TCPIP_H__
33
34 #ifndef NO_PROTOTYPES
35 void tcpip_connect_to_master( char * ); /* nn.nn.nn.nn:port address */
36 void tcpip_wait_for_slaves( int );      /* slaves number            */
37 void tcpip_send( message * );
38 bool tcpip_poll( int miliseconds );     /* < 0  ->  blocks indefinitely */
39 bool tcpip_recv( message * );
40 #else
41 void tcpip_connect_to_master();
42 void tcpip_wait_for_slaves();
43 void tcpip_send();
44 bool tcpip_poll();
45 void tcpip_recv();
46 #endif
47
48 #define PORT 3600
49
50 #endif
51
52