package edu.vt.marian.server; import java.io.*; import java.net.*; import java.util.*; import edu.vt.marian.uip.*; /** interface name: call_back_processor class description: this is an interface, any system which want to use the service of uip need to implement this interface and overwrite it's methods. when client_uip or server_uip recieve a function from the other side it will call process_call_back(..) methods to process the function, since different systems may have different code processing functions revieved, that's also the reason that these methods need to be overwrite.
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: */ public class call_back_processor1 implements call_back_processor { /** empty constructor */ public call_back_processor1() { } /** method description: this method will be called when client uip recieve a function from it's server uip
uses the services of class(es): none input parameter(s): cu -- this is the client_uip object which recieved the function rf -- this is the function recieved by client_uip and need to be processed output parameter(s): none return value: 0 -- every thing is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none */ public int process_call_back(client_uip cu, rpc_function rf) { return OK; } /** method description: this method will be called when server uip recieve a function from a client uip
uses the services of class(es): none input parameter(s): client_id -- this is used to identify from which client the server get the function rf -- this is the function recieved by server_uip and need to be processed output parameter(s): none return value: 0 -- everything is fine, the function has been processed correctly other -- defined by each system synchronization consideration: none */ public int process_call_back(int client_id, rpc_function f) { return OK; } }