Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill old $Id$ command dating from CVS
[simgrid.git] / src / gras / Virtu / virtu_sg.h
index dab2df5..d9e291d 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* virtu_sg - specific GRAS implementation for simulator                    */
 
 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
@@ -26,21 +24,20 @@ typedef struct {
 typedef struct {
   int refcount;
 
-  /* Nothing in particular (anymore) */
+  xbt_dynar_t ports;
+
 } gras_hostdata_t;
 
 /* data for each socket (FIXME: find a better location for that)*/
 typedef struct {
-  smx_rdv_t rdv;
+  smx_process_t from_process;
+  smx_process_t to_process;
 
-  smx_process_t from_process; /* the one who created the socket */
   smx_host_t to_host;           /* Who's on other side */
-  smx_comm_t comm; /* Ongoing communication */
-
-  s_gras_msg_t ongoing_msg;
-  size_t ongoing_msg_size;
 
-  gras_socket_t to_socket; /* If != NULL, this socket was created as accept when receiving onto to_socket */
+  smx_cond_t cond;
+  smx_mutex_t mutex;
+  gras_socket_t to_socket;
 } gras_trp_sg_sock_data_t;