- amok_bw_saturate_start(argv[1],atoi(argv[2]),argv[3],atoi(argv[4]),
- sat_size,5);
- gras_os_sleep(3);
+ /* Init the group */
+ peers=amok_pm_group_new("saturate");
+ /* wait for dudes */
+ gras_msg_handleall(5);
+
+ /* get 2 friends */
+ xbt_dynar_get_cpy(peers,0,&h1);
+ xbt_dynar_get_cpy(peers,1,&h2);
+
+ /* Start saturation */
+ amok_bw_saturate_start(h1->name,h1->port,
+ h2->name,h2->port,
+ 0, /* Be a nice boy, compute msg_size yourself */
+ 30 /* 5 sec timeout */);
+
+ /* Stop it after a while */
+ gras_os_sleep(1);