Announcement

Collapse
No announcement yet.

Callback in a rpc

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Callback in a rpc

    I came across a couple of examples in which the following code was being employed

    Code:
     comm.rpc(Address,'callback','SomeMethod',"action")
    I searched for a method called "callback" on the node of "Address" but I could not find any method inside the snappy script called "callback". Instead it had a method called "action" which was being triggered. My question is if there is a default built in method called callback on every node that a user does not have to explicitly defined in a snappy script ? If so what are the parameters that it takes ?

    My normal understanding of rpc callback is this way
    Code:
    comm.rpc(Address,Function_on_remote_node,parameters)
    parameter 1:Address of remote node
    parameter 2:Function to call on remote node
    parameter 3..:Parameters to pass to that node
    My question is do the parameters change if the method on remote node is "callback" ??
    Last edited by rob_hood; 06-01-2016, 08:18 PM.
X