netbula.ORPC
Class ClientHTTP
void | call(int proc, XDT inarg, XDT outarg)- Call an RPC procedure.
|
boolean | close()- Close the connection to the RPC server.
|
boolean | connect()- Connect to the RPC server.
|
void | setServer(String rpcserv, int proto)- This method sets the real rpc server hostname and protocol.
|
call, call_proc0, close, connect, finalize, getAuth, getRpcProgramNumber, getRpcProtocol, getRpcVersionNumber, setAuth, setConnectionTimeout, setRpcProgramNumber, setRpcProtocol, setRpcVersionNumber, setServer, setTimeout |
ClientHTTP
public ClientHTTP(String gwurl,
int prog,
int ver)
throws rpc_errgwurl - URL of the RPC gateway, this can be the tunnel CGI program, or the netbula.ORPC.RpcProxyServlet .prog - Programmer numberver - Version number
call
public void call(int proc,
XDT inarg,
XDT outarg)
throws rpc_errCall an RPC procedure. This is an abstract method to be implemented for different RPC transports.
- call in interface RPCClient
proc - Procedure numberinarg - Input argument to be sent overoutarg - Output argument to hold results from server
close
public boolean close()
Close the connection to the RPC server.
- close in interface RPCClient
connect
public boolean connect()
Connect to the RPC server.
- connect in interface RPCClient
setServer
public void setServer(String rpcserv,
int proto)
throws rpc_errThis method sets the real rpc server hostname and protocol.
- setServer in interface RPCClient
rpcserv - RPC server hostnameproto - Protocol, can be RPCClient.IPPROTO_TCP or RPCClient.IPPROTO_UDP