A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adapt to lastest changes in GRAS API
[simgrid.git]
/
examples
/
gras
/
ping
/
ping_server.c
diff --git
a/examples/gras/ping/ping_server.c
b/examples/gras/ping/ping_server.c
index e59dee2c067497a035872eab61fa237e24ad4436..29e853dba807ea5abb01ae804e38c6f8eb59733e 100644
(file)
--- 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 {
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) {
/* 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 */
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[]) {
} /* end_of_server_cb_ping_handler */
int server (int argc,char *argv[]) {