Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove gras from the main documentation
[simgrid.git] / examples / amok / saturate / env.c
index 02cd27a..fc87222 100644 (file)
@@ -32,7 +32,7 @@ static void env_hosttohost_bw(int argc, char *argv[])
   int i;
   xbt_host_t h1;
 
-  gras_socket_t peer;           /* socket to sensor */
+  xbt_socket_t peer;           /* socket to sensor */
 
   /* wait to ensure that all server sockets are there before starting the experiment */
   gras_os_sleep(0.5);
@@ -67,8 +67,6 @@ static void env_hosttohost_bw(int argc, char *argv[])
 /********************************************************************************************/
 static void env_Pairwisehost_bw(int argc, char *argv[])
 {
-  xbt_ex_t e;
-
   /* where are the sensors */
   xbt_dynar_t hosts = xbt_dynar_new(sizeof(xbt_host_t), &free_host);
   int nb_hosts;
@@ -84,7 +82,7 @@ static void env_Pairwisehost_bw(int argc, char *argv[])
   xbt_host_t h1, h2;
 
   /* socket to sensor */
-  gras_socket_t peer;
+  xbt_socket_t peer;
 
   /* wait to ensure that all server sockets are there before starting the experiment */
   gras_os_sleep(0.5);
@@ -107,8 +105,8 @@ static void env_Pairwisehost_bw(int argc, char *argv[])
       amok_bw_saturate_start(h1->name, h1->port, host_test, h1->port,   //"Ginette"
                              msg_size, 120);    // sturation of the link with msg_size to compute a concurent bandwidth MA //MB
     }
-    CATCH(e) {
-      RETHROW0("Cannot ask hosts to saturate the link: %s");
+    CATCH_ANONYMOUS {
+      RETHROWF("Cannot ask hosts to saturate the link: %s");
     }
     // gras_os_sleep(1.0);