- exp_size,msg_size,
- sec,((double)bw)/1024.0);
- }
-
- xbt_dynar_map(hosts,kill_buddy_dynar);
- xbt_dynar_free(&hosts);
-
-}
-/********************************************************************************************/
-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;
-
- /* getting the name of maestro for the saturation and the concurrent bandwidth measurements */
- char* host_test=argv[0];
-
- /* results */
- double sec, bw;
-
- /* iterators */
- int i,j;
- xbt_host_t h1,h2;
-
- /* socket to sensor */
- gras_socket_t peer;
-
- /* wait to ensure that all server sockets are there before starting the experiment */
- gras_os_sleep(0.5);
-
- INFO1(">>>>>< le maestro est: %s ",argv[0]);
- /* Get the sensor location from argc/argv */
- for (i=1; i<argc-1; i+=2){
- xbt_host_t host=xbt_new(s_xbt_host_t,1);
- host->name=strdup(argv[i]);
- host->port=atoi(argv[i+1]);
- INFO2("New sensor: %s:%d",host->name,host->port);
- xbt_dynar_push(hosts,&host);
- }
- nb_hosts = xbt_dynar_length(hosts);