netbula.ORPC
Class ClientTCP
RPC client using the TCP protocol.
ClientTCP(InetAddress inetAddress, int prog, int ver)
|
ClientTCP(InetAddress inetAddress, int prog, int ver, int port)
|
ClientTCP(Socket connected_socket, int prog, int ver)- Create a TCP client from a connected Socket
|
ClientTCP(String host, int prog, int ver)- Create a TCP client
|
ClientTCP(String hostname, int prog, int ver, int port)
|
call, call_proc0, close, connect, finalize, getAuth, getRpcProgramNumber, getRpcProtocol, getRpcVersionNumber, setAuth, setConnectionTimeout, setRpcProgramNumber, setRpcProtocol, setRpcVersionNumber, setServer, setTimeout |
ClientTCP
public ClientTCP(InetAddress inetAddress,
int prog,
int ver)
throws rpc_err
ClientTCP
public ClientTCP(InetAddress inetAddress,
int prog,
int ver,
int port)
throws rpc_err
ClientTCP
public ClientTCP(Socket connected_socket,
int prog,
int ver)
throws rpc_errCreate a TCP client from a connected Socket
connected_socket - A connected socketprog - Program numberver - Version numbr
ClientTCP
public ClientTCP(String host,
int prog,
int ver)
throws rpc_errCreate a TCP client
host - Server host nameprog - RPC program numberver - Version numbr
ClientTCP
public ClientTCP(String hostname,
int prog,
int ver,
int port)
throws rpc_err
close
public boolean close()
Close the connection to the server
- close in interface InetRPCClient
getSocket
public Socket getSocket()
Return the TCP Socket associated with the RPC client.
One could then set socket options on it.
tcpCallResultReady
public boolean tcpCallResultReady()
throws rpc_err- true if the call is ready with result
tcp_async_call
public void tcp_async_call(int proc,
XDT inarg)
throws rpc_errInitiate an asynchronous call which returns immediately.
The caller can then use the tcpCallResultReady() method to check if the
call has returned. The tcp_async_get_result(int proc, XDT outarg) method
is then used to get the result. There can be only one call pending at any time on one client handle.
proc - procedure numberinarg - input parameter
tcp_async_get_result
public void tcp_async_get_result(int proc,
XDT outarg)
throws rpc_errObtain the results from an asynchronous call
proc - procedure numberoutarg - output parameter