/* virtu_sg - specific GRAS implementation for simulator */
/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
/* virtu_sg - specific GRAS implementation for simulator */
/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
- int port; /* list of ports used by a server socket */
- int tochan; /* the channel it points to */
- int meas; /* (boolean) the channel is for measurements or for messages */
+ int port; /* list of ports used by a server socket */
+ int meas; /* (boolean) the channel is for measurements or for messages */
+ smx_process_t process;
+ gras_socket_t socket;
- int from_PID; /* process which sent this message */
- int to_PID; /* process to which this message is destinated */
+ smx_process_t from_process;
+ smx_process_t to_process;
+
+ smx_host_t to_host; /* Who's on other side */
/* The same function by id would be really dangerous.
*
* Indeed, it would rely on the fact that all process register libdatas in
* the same order, which is wrong if they init amok modules in different
* order.
*/
/* The same function by id would be really dangerous.
*
* Indeed, it would rely on the fact that all process register libdatas in
* the same order, which is wrong if they init amok modules in different
* order.
*/