View Full Version : RPC Success or Failure
rbelli1
03-30-2010, 07:35 PM
Is there any way to determine the status of an RPC call? For example, I send an RPC and get True back indicating that there was enough memory available and no catastrophic problems exist. Then the PRC times out due to network traffic or the remote node is not reachable. How do I know this? Is there a hook for failed RPC?
BoB
Jheath
03-30-2010, 08:58 PM
For unicast messages there is a built-in network layer ACK. However, this does not get propagated back up to the SNAPpy script.
The best way is to simply add an application layer acknowledgement. In other words, send an RPC response from the destination node that the message was received correctly. The SNAPpy built-in function "rpcSourceAddr()" will give you the address of the node that sent the RPC (and hence should be the destination of the response).
rbelli1
03-30-2010, 10:11 PM
I was afraid you were going to say something like that. I will add a thread in the feature request area.
BoB
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.