int sensor(int argc, char *argv[])
{
- gras_socket_t mysock;
- gras_socket_t master;
+ xbt_socket_t mysock;
+ xbt_socket_t master;
gras_init(&argc, argv);
amok_bw_init();
static void kill_buddy(char *name, int port)
{
- gras_socket_t sock = gras_socket_client(name, port);
+ xbt_socket_t sock = gras_socket_client(name, port);
gras_msg_send(sock, "kill", NULL);
gras_socket_close(sock);
}
/********************************************************************************************/
static void full_fledged_saturation(int argc, char *argv[])
{
- xbt_ex_t e;
double time1 = 5.0, bw1 = 5.0; // 0.5 for test
/* timers */
double begin_simulated;
amok_bw_saturate_start(h1->name, h1->port, h2->name, h2->port, 0, /* Be nice, compute msg_size yourself */
0 /* no timeout */ );
}
- CATCH(e) {
- RETHROW0("Cannot ask peers to saturate the link: %s");
+ CATCH_ANONYMOUS {
+ RETHROWF("Cannot ask peers to saturate the link: %s");
}
gras_os_sleep(5);