From 08b83235097cd24905e0b263d422e6220a08f03a Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 18 Jun 2004 18:10:50 +0000 Subject: [PATCH] porting to new standards 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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/gras/Virtu/virtu_sg.h b/src/gras/Virtu/virtu_sg.h index 85303ca0ab..53ad96ad21 100644 --- a/src/gras/Virtu/virtu_sg.h +++ b/src/gras/Virtu/virtu_sg.h @@ -16,14 +16,18 @@ #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; -- 2.20.1