[BACK]Return to com.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / include

File: [local] / OpenXM_contrib2 / asir2000 / include / com.h (download)

Revision 1.1.1.1 (vendor branch), Fri Dec 3 07:39:11 1999 UTC (24 years, 5 months ago) by noro
Branch: NORO
CVS Tags: RELEASE_20000124, ASIR2000
Changes since 1.1: +0 -0 lines

Imported asir2000 as OpenXM_contrib2/asir2000.

/* $OpenXM: OpenXM_contrib2/asir2000/include/com.h,v 1.1.1.1 1999/12/03 07:39:11 noro Exp $ */
#ifndef _COM_H_
#define _COM_H_
#if defined(VISUAL) || MPI
#include "wsio.h"
#endif

#if !defined(VISUAL)
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <rpc/rpc.h>
#endif

#define N32 0x80

#define ISIZ sizeof(int)
#define MAXIOFP 1024

#define C_ZERO 0
#define C_OBJ 1
#define C_VL 2
#define C_INT 3
#define C_CLOSE 4
#define C_ENDARG 5
#define C_PRIV C_ENDARG+1
#define C_SHUTDOWN 6

#if defined(VISUAL) || MPI
struct IOFP {
	STREAM *in,*out;
	int s,conv;
	char *socket;
};

void ws_loadv(STREAM *,V *);
void ws_savev(STREAM *,V);
void ws_loadvl(STREAM *);
void ws_savevl(STREAM *,VL);
V ws_load_convv(int);
int ws_save_convv(V);
#else
struct IOFP {
	FILE *in,*out;
	int s,conv;
	char *socket;
};
#endif
#endif /* _COM_H_ */