/* 1. Get the payload into the msg variable, and retrieve my caller */
int msg = *(int *) payload;
/* 1. Get the payload into the msg variable, and retrieve my caller */
int msg = *(int *) payload;
gras_msg_send(expeditor, "pong", &msg);
/* 6. Deal with errors: add some details to the exception */
gras_msg_send(expeditor, "pong", &msg);
/* 6. Deal with errors: add some details to the exception */
/* 7. Set the endcondition boolean to true (and make sure the server stops after receiving it). */
globals->endcondition = 1;
/* 7. Set the endcondition boolean to true (and make sure the server stops after receiving it). */
globals->endcondition = 1;
/* 5. Register my callback */
gras_cb_register("ping", &server_cb_ping_handler);
/* 5. Register my callback */
gras_cb_register("ping", &server_cb_ping_handler);
- INFO1(">>>>>>>> Listening on port %d <<<<<<<<",
- gras_socket_my_port(globals->sock));
+ XBT_INFO(">>>>>>>> Listening on port %d <<<<<<<<",
+ xbt_socket_my_port(globals->sock));
/* 8. Free the allocated resources, and shut GRAS down */
gras_socket_close(globals->sock);
free(globals);
/* 8. Free the allocated resources, and shut GRAS down */
gras_socket_close(globals->sock);
free(globals);