edu.vt.marian.uip
Interface call_back_processor


public abstract interface call_back_processor

Any system which wants to use the service of uip needs to implement this interface. When client_uip or server_uip recieve a function from the other side it will call one of the processCallBack(..) methods to process the function. Different systems may have different code processing functions, but any can be specified in an rpc_function.

uses the services of class(es): none

designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu)

implementator(s):

finished time:

known bugs:

JDK version: 1.1.5

side effects:


Field Summary
static int OK
          possible method return values
 
Method Summary
 int process_call_back(client_uip cu, rpc_function rf)
          this method will be called when client_uip recieves a function from its server_uip
 int process_call_back(int clientID, rpc_function rf)
          method description: this method will be called when server uip recieve a function from a client uip
 

Field Detail

OK

public static final int OK
possible method return values
Method Detail

process_call_back

public int process_call_back(client_uip cu,
                             rpc_function rf)
this method will be called when client_uip recieves a function from its server_uip
Parameters:
cu - the client_uip object which recieved the function
rf - the function recieved by client_uip that needs to be processed
Returns:
OK -- every thing is fine, the function has been processed correctly
other -- defined by each system

synchronization consideration: none


process_call_back

public int process_call_back(int clientID,
                             rpc_function rf)
method description: this method will be called when server uip recieve a function from a client uip
Parameters:
clientID - used to identify from which client the server gets the function
rf - the function recieved by server_uip that needs to be processed
Returns:
OK -- everything is fine, the function has been processed correctly
other -- defined by each system

synchronization consideration: none