Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Well. RPC answer need some extra love.
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 1 Jun 2006 20:21:03 +0000 (20:21 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 1 Jun 2006 20:21:03 +0000 (20:21 +0000)
(the answer type is not the request type, stupid me)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2337 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/Msg/rl_msg.c

index 50cf748..fecc8cb 100644 (file)
@@ -59,7 +59,10 @@ void gras_msg_send_ext(gras_socket_t   sock,
   if (kind == e_gras_msg_kind_rpcerror) {
      /* error on remote host, carfull, payload is an exception */
     gras_datadesc_send(sock, gras_datadesc_by_name("ex_t"),payload);
-  } else {
+  } else if (kind == e_gras_msg_kind_rpcanswer) {
+    if (msgtype->answer_type)
+      gras_datadesc_send(sock, msgtype->answer_type, payload);
+  }else {
      /* regular message */
      if (msgtype->ctn_type)
        gras_datadesc_send(sock, msgtype->ctn_type, payload);