3 /* virtu_sg - specific GRAS implementation for simulator */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
13 #include "gras/Virtu/virtu_private.h"
14 #include "msg/msg.h" /* SimGrid header */
16 #define XBT_MAX_CHANNEL 10
19 int port; /* list of ports used by a server socket */
20 int tochan; /* the channel it points to */
21 int raw; /* (boolean) the channel is in raw mode or for messages */
24 /* Data for each host */
26 int proc[XBT_MAX_CHANNEL]; /* PID of who's connected to each channel */
27 /* If =0, then free */
33 /* data for each socket (FIXME: find a better location for that)*/
35 int from_PID; /* process which sent this message */
36 int to_PID; /* process to which this message is destinated */
38 m_host_t to_host; /* Who's on other side */
39 m_channel_t to_chan;/* Channel on which the other side is earing */
40 } gras_trp_sg_sock_data_t;
43 #endif /* VIRTU_SG_H */