$ ./test_server & ./test_client 127.0.0.1 [blaise:client:(17757) 0.000012] [test/INFO] Ask to convert 4321 [blaise:client:(17757) 0.000679] [test/INFO] The server says that 4321 is equal to "4321". [blaise:client:(17757) 0.000699] [test/INFO] Ask to convert 1234 [blaise:client:(17757) 0.000817] [test/INFO] The server says that "1234" is equal to 1234. [blaise:client:(17757) 0.008084] [test/INFO] The server refuses to convert azerty. Here is the received exception: ** SimGrid: UNCAUGHT EXCEPTION received on blaise(17757): category: invalid_arg; value: 0 ** Error while converting azerty: this does not seem to be a valid number (problem at 'azerty') ** Thrown by server() in this process [blaise:client:(17757) 0.008113] xbt/ex.c:323: [xbt_ex/CRITICAL] Error while converting azerty: this does not seem to be a valid number (problem at 'azerty') ** In server_convert_a2i_cb() at /home/mquinson/CVSIMPORT/gras/pure/doc/gtut-files/test.c:48 ** In gras_msg_handle() at /home/mquinson/CVSIMPORT/gras/pure/src/gras/Msg/gras_msg_exchange.c:414 ** In server() at /home/mquinson/CVSIMPORT/gras/pure/doc/gtut-files/test.c:71 ** In main() at /home/mquinson/CVSIMPORT/gras/pure/doc/gtut-files/_test_server.c:31 [blaise:client:(17757) 0.008128] [test/INFO] Again, previous exception was excepted [blaise:client:(17757) 0.008147] [test/INFO] Stopped the server [blaise:client:(17757) 0.008154] [gras/INFO] Exiting GRAS [blaise:server:(17754) 0.000005] [test/INFO] Convert 4321 to string [blaise:server:(17754) 0.000022] [test/INFO] 4321 converted to string: 4321 [blaise:server:(17754) 0.000183] [test/INFO] Convert 1234 to long [blaise:server:(17754) 0.000246] [test/INFO] Convert azerty to long [blaise:server:(17754) 0.007738] [test/INFO] Server done [blaise:server:(17754) 0.007750] [gras/INFO] Exiting GRAS $ $ killall test_server $ $ ./test_simulator platform.xml test.xml [Boivin:client:(2) 0.000000] [test/INFO] Ask to convert 4321 [Jacquelin:server:(1) 0.000538] [test/INFO] Convert 4321 to string [Jacquelin:server:(1) 0.000538] [test/INFO] 4321 converted to string: 4321 [Boivin:client:(2) 0.001077] [test/INFO] The server says that 4321 is equal to "4321". [Boivin:client:(2) 0.001077] [test/INFO] Ask to convert 1234 [Jacquelin:server:(1) 0.001615] [test/INFO] Convert 1234 to long [Boivin:client:(2) 0.002153] [test/INFO] The server says that "1234" is equal to 1234. [Jacquelin:server:(1) 0.002692] [test/INFO] Convert azerty to long [Boivin:client:(2) 0.003358] [test/INFO] The server refuses to convert azerty. Here is the received exception: ** SimGrid: UNCAUGHT EXCEPTION received on Boivin(2): category: invalid_arg; value: 0 ** Error while converting azerty: this does not seem to be a valid number (problem at 'azerty') ** Thrown by server() in this process [Boivin:client:(2) 0.003358] xbt/ex.c:323: [xbt_ex/CRITICAL] Error while converting azerty: this does not seem to be a valid number (problem at 'azerty') ** In server_convert_a2i_cb() at /home/mquinson/CVSIMPORT/gras/pure/doc/gtut-files/test.c:48 ** In gras_msg_handle() at /home/mquinson/CVSIMPORT/gras/pure/src/gras/Msg/gras_msg_exchange.c:414 ** In server() at /home/mquinson/CVSIMPORT/gras/pure/doc/gtut-files/test.c:71 [Boivin:client:(2) 0.003358] [test/INFO] Again, previous exception was excepted [Jacquelin:server:(1) 0.003895] [test/INFO] Server done [Jacquelin:server:(1) 0.003895] [gras/INFO] Exiting GRAS [Boivin:client:(2) 0.003895] [test/INFO] Stopped the server [Boivin:client:(2) 0.003895] [gras/INFO] Exiting GRAS $