X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dd6126e20f664d3cfe6533d593f6ffa822dcbdc4..78c37d1780d1243aec405e7f38751e0aa5037c38:/examples/gras/ping/ping_server.c diff --git a/examples/gras/ping/ping_server.c b/examples/gras/ping/ping_server.c index e59dee2c06..29e853dba8 100644 --- a/examples/gras/ping/ping_server.c +++ b/examples/gras/ping/ping_server.c @@ -39,7 +39,7 @@ static int server_cb_ping_handler(gras_msg_cb_ctx_t ctx, void *payload) { msg = 4321; /* 5. Send it back as payload of a pong message to the expeditor */ TRY { - gras_msg_send(expeditor, gras_msgtype_by_name("pong"), &msg); + gras_msg_send(expeditor, "pong", &msg); /* 6. Deal with errors: add some details to the exception */ } CATCH(e) { @@ -56,7 +56,7 @@ static int server_cb_ping_handler(gras_msg_cb_ctx_t ctx, void *payload) { gras_socket_close(expeditor); /* 9. Tell GRAS that we consummed this message */ - return 1; + return 0; } /* end_of_server_cb_ping_handler */ int server (int argc,char *argv[]) {