=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/oxKan0.h,v retrieving revision 1.2 retrieving revision 1.10 diff -u -p -r1.2 -r1.10 --- OpenXM/src/kan96xx/plugin/oxKan0.h 2000/01/16 07:55:47 1.2 +++ OpenXM/src/kan96xx/plugin/oxKan0.h 2004/09/17 07:27:28 1.10 @@ -1,8 +1,8 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/src/kan96xx/plugin/oxKan0.h,v 1.9 2004/03/08 08:24:42 takayama Exp $ */ /* ox_kan0.h */ -#define mymalloc(n) malloc(n) -#define myfree(p) free(p) +#define mymalloc(n) sGC_malloc(n) +#define myfree(p) sGC_free(p) typedef FILE2 * ox_stream; int socketOpen(char *serverName,int portNumber); @@ -66,14 +66,18 @@ typedef struct oxclient { NULL means no restriction.*/ int engineByteOrder; int controlByteOrder; + int engineID; } oxclient; -#define N_OF_CLIENT_FIELDS 13 /* If you add new field to struct oxclient +#define N_OF_CLIENT_FIELDS 14 /* If you add new field to struct oxclient do not forget to increase the number.*/ -/* Change also, oxInitClient, oxCreateClient, oxCreateClientFile oxmisc.c +/* Change also, oxInitClient, oxCreateClient(2), oxCreateClientFile oxmisc.c oxClientToObject, oxObjectToClient oxmisc2.c */ typedef oxclient * oxclientp; +#define AbortIfRFC_101(oxclient) if (oxclient->controlport < 0) {\ + errorOxmisc2("The OpenXM RFC 101 client is used for RFC 100\n"); } + #define CLIENT_SOCKET 0 #define CLIENT_FILE 1 @@ -86,9 +90,9 @@ int oxIsThereErrorClient(oxclientp client); /* 1 : er oxclientp oxCreateClient(char *ipname,int portStream,int portControl); oxclientp oxCreateClientFile(char *fileName,char *mode,char *controlFileName,char *cmode); oxclientp oxCreateClient2(int fdstream,int portStream, - int fdcontrol,int portControl,int ipmask,char *pass); + int fdcontrol,int portControl,int ipmask,char *cpass,char *dpass); int oxSetByteOrder(int fd); -int oxTellMyByteOrder(int fd); +int oxTellMyByteOrder(int fdOut,int fdIn); char *oxGenPass(void); @@ -134,6 +138,7 @@ void oxReqSetName(ox_stream os,char *name); void oxReqEvalName(ox_stream os,char *name); void oxReqExecuteStringByLocalParser(ox_stream os,char *s); void oxReqExecuteFunction(ox_stream os,char *s); +void oxReqExecuteFunctionWithOptionalArgument(ox_stream os,char *s); void oxReqPopString(ox_stream os); void oxReqPushString(ox_stream os,char *s); void oxReqPopCMO(ox_stream os); @@ -147,3 +152,7 @@ int oxWritePortFile(int func,int port,char *fname); char *oxGenPortFile(void); int oxRemovePortFile(void); +#define MAX_N_OF_CLIENT 1024 +int oxGetClientID(); + +char *oxFIDtoStr(int id);