Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
porting to new standards
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 18 Jun 2004 18:10:50 +0000 (18:10 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 18 Jun 2004 18:10:50 +0000 (18:10 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@117 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/Virtu/virtu_sg.h

index 85303ca..53ad96a 100644 (file)
 
 #define GRAS_MAX_CHANNEL 10
 
+typedef struct {
+  int port;  /* list of ports used by a server socket */
+  int tochan; /* the channel it points to */
+  int raw;   /* (boolean) the channel is in raw mode or for messages */
+} gras_sg_portrec_t;
+
 /* Data for each host */
 typedef struct {
-  int proc[GRAS_MAX_CHANNEL]; /* who's connected to each channel (its PID). If =0, then free */
+  int proc[GRAS_MAX_CHANNEL]; /* PID of who's connected to each channel */
+                              /* If =0, then free */
 
-  int portLen;
-  int *port;             /* list of ports used by a server socket */
-  int *port2chan;        /* the channel it points to */
-  int *raw;              /* (boolean) the channel is in raw mode or for formatted messages */
+  gras_dynar_t *ports;
 
 } gras_hostdata_t;