[BACK]Return to oxmisc2.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/oxmisc2.c between version 1.14 and 1.15

version 1.14, 2002/11/07 13:32:06 version 1.15, 2002/11/07 23:52:20
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc2.c,v 1.13 2002/02/24 10:27:20 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/oxmisc2.c,v 1.14 2002/11/07 13:32:06 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "ox_kan.h"  #include "ox_kan.h"
 #include "oxmisc2.h"   /* This file requires sm1 object description. */  #include "oxmisc2.h"   /* This file requires sm1 object description. */
Line 1303  oxclientp oxCreateEngine_RFC_101(int fdstream,int port
Line 1303  oxclientp oxCreateEngine_RFC_101(int fdstream,int port
   return(client);    return(client);
 }  }
   
 #define MAX_N_OF_CLIENT 1024  
 static struct object OxClientList[MAX_N_OF_CLIENT];  
 static int OxClientListn = 0;  
 int oxGetClientID() {  
   extern struct object OxClientList[];  
   extern int OxClientListn;  
   extern struct object Nobj;  
   int i;  
   for (i=0; i<OxClientListn; i++) {  
         if ((OxClientList[i]).tag == Snull) {  
           return i;  
         }  
   }  
   i = OxClientListn;  
   (OxClientList[i]).tag = Snull;  
   if (OxClientListn < MAX_N_OF_CLIENT-1) {  
         OxClientListn++;  
         return i;  
   }else{  
         errorOxmisc2("oxGetClientID(): the client table is full.\n");  
         return 0;  
   }  
 }  
 void oxClientListUpdate(struct object ob) {  void oxClientListUpdate(struct object ob) {
   int id;    int id;
   extern struct object OxClientList[];    extern struct object OxClientList[];

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>