Annotation of OpenXM_contrib2/asir2000/include/com.h, Revision 1.2
1.2 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/include/com.h,v 1.1.1.1 1999/12/03 07:39:11 noro Exp $ */
1.1 noro 2: #ifndef _COM_H_
3: #define _COM_H_
4: #if defined(VISUAL) || MPI
5: #include "wsio.h"
6: #endif
7:
1.2 ! noro 8: #include <stdio.h>
! 9:
1.1 noro 10: #if !defined(VISUAL)
11: #include <netdb.h>
12: #include <sys/types.h>
13: #include <sys/socket.h>
14: #include <rpc/rpc.h>
1.2 ! noro 15: #include <setjmp.h>
1.1 noro 16: #endif
17:
18: #define N32 0x80
19:
20: #define ISIZ sizeof(int)
21: #define MAXIOFP 1024
22:
23: #define C_ZERO 0
24: #define C_OBJ 1
25: #define C_VL 2
26: #define C_INT 3
27: #define C_CLOSE 4
28: #define C_ENDARG 5
29: #define C_PRIV C_ENDARG+1
30: #define C_SHUTDOWN 6
31:
32: #if defined(VISUAL) || MPI
33: struct IOFP {
34: STREAM *in,*out;
35: int s,conv;
36: char *socket;
37: };
38:
39: void ws_loadv(STREAM *,V *);
40: void ws_savev(STREAM *,V);
41: void ws_loadvl(STREAM *);
42: void ws_savevl(STREAM *,VL);
43: V ws_load_convv(int);
44: int ws_save_convv(V);
45: #else
46: struct IOFP {
47: FILE *in,*out;
48: int s,conv;
49: char *socket;
50: };
51: #endif
52: #endif /* _COM_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>