=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/plugin/oxKan0.h,v retrieving revision 1.1.1.1 retrieving revision 1.7 diff -u -p -r1.1.1.1 -r1.7 --- OpenXM/src/kan96xx/plugin/oxKan0.h 1999/10/08 02:12:05 1.1.1.1 +++ OpenXM/src/kan96xx/plugin/oxKan0.h 2003/11/19 01:02:39 1.7 @@ -1,3 +1,4 @@ +/* $OpenXM: OpenXM/src/kan96xx/plugin/oxKan0.h,v 1.6 2003/11/18 11:08:27 takayama Exp $ */ /* ox_kan0.h */ #define mymalloc(n) malloc(n) @@ -65,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 @@ -87,7 +92,7 @@ oxclientp oxCreateClientFile(char *fileName,char *mode oxclientp oxCreateClient2(int fdstream,int portStream, int fdcontrol,int portControl,int ipmask,char *pass); int oxSetByteOrder(int fd); -int oxTellMyByteOrder(int fd); +int oxTellMyByteOrder(int fdOut,int fdIn); char *oxGenPass(void); @@ -146,3 +151,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);