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 "xbt/dynar.h"
15 #include "simix/simix.h" /* SimGrid header */
16 #include "gras/Transport/transport_private.h"
19 int port; /* list of ports used by a server socket */
20 int meas; /* (boolean) the channel is for measurements or for messages */
21 smx_process_t process;
25 /* Data for each host */
33 /* data for each socket (FIXME: find a better location for that)*/
35 smx_process_t from_process;
36 smx_process_t to_process;
38 smx_host_t to_host; /* Who's on other side */
42 gras_socket_t to_socket;
43 } gras_trp_sg_sock_data_t;
46 void *gras_libdata_by_name_from_remote(const char *name, smx_process_t p);
47 /* The same function by id would be really dangerous.
49 * Indeed, it would rely on the fact that all process register libdatas in
50 * the same order, which is wrong if they init amok modules in different
54 #endif /* VIRTU_SG_H */