static int server_cb_ping_handler(gras_msg_cb_ctx_t ctx, void *payload)
{
-
- xbt_ex_t e;
/* 1. Get the payload into the msg variable, and retrieve my caller */
int msg = *(int *) payload;
gras_socket_t expeditor = gras_msg_cb_ctx_from(ctx);
gras_msg_send(expeditor, "pong", &msg);
/* 6. Deal with errors: add some details to the exception */
- } CATCH(e) {
+ }
+ CATCH_ANONYMOUS {
gras_socket_close(globals->sock);
- RETHROW0("Unable answer with PONG: %s");
+ RETHROWF("Unable answer with PONG: %s");
}
XBT_INFO(">>>>>>>> Answered with PONG(4321) <<<<<<<<");