l091
08-19-2009, 01:54 AM
This would be one of the most important hooks, when an rpc with some id pops out of the queue and has been sent and received, then on the originating module an event can be fired depending on the id of the rpc that has just been delivered.
It would also be good to have the possibility to have HOOK_RPC_SENT for an rpc that has a specific user defined id.
For example something like this should be be possible:
def somFunction:
rpc(destination,'call',[args],OPTIONAL_USER_DEFINED_ID)
@HOOK_RPC_SENT
def rpc_sent(id)
print "Message: " + id + "is sent."
@HOOK_RPC_DELIVERED
def rpc_delivered(id)
print "Message: " + id + "is delivered."
It would also be good to have the possibility to have HOOK_RPC_SENT for an rpc that has a specific user defined id.
For example something like this should be be possible:
def somFunction:
rpc(destination,'call',[args],OPTIONAL_USER_DEFINED_ID)
@HOOK_RPC_SENT
def rpc_sent(id)
print "Message: " + id + "is sent."
@HOOK_RPC_DELIVERED
def rpc_delivered(id)
print "Message: " + id + "is delivered."