netbula.ORPC
Class InetRPCClient
public abstract class InetRPCClient
Abstract base class of all RPC client classes.
InetRPCClient()
|
InetRPCClient(InetAddress servAdd, int proto, int port, int prog, int ver)- Construct an RPC client binding to a server specified by the parameters.
|
InetRPCClient(String host, int proto, int port, int prog, int ver)- Construct an RPC client binding to a server specified by the parameters.
|
abstract boolean | close()- Close the connection to the RPC server.
|
abstract boolean | connect()- Connect to the RPC server.
|
int | getserver_port()- Get server's port number.
|
void | setServer(String host, int proto)- Closes existing connection and connect to another server.
|
call, call_proc0, close, connect, finalize, getAuth, getRpcProgramNumber, getRpcProtocol, getRpcVersionNumber, setAuth, setConnectionTimeout, setRpcProgramNumber, setRpcProtocol, setRpcVersionNumber, setServer, setTimeout |
InetRPCClient
public InetRPCClient()
InetRPCClient
public InetRPCClient(InetAddress servAdd,
int proto,
int port,
int prog,
int ver)
throws rpc_errConstruct an RPC client binding to a server specified by the parameters.
If port is 0, Portmapper will be queried to obtained the port number.
servAdd - RPC server's internet addressproto - Protocolport - Server port. If this is 0, Portmapper will be queried to obtained the port number.prog - Server program numberver - Server version number
InetRPCClient
public InetRPCClient(String host,
int proto,
int port,
int prog,
int ver)
throws rpc_errConstruct an RPC client binding to a server specified by the parameters.
proto - Protocolport - Server port. If this is 0, Portmapper will be queried to obtained the port number.prog - Server program numberver - Server version number
close
public abstract boolean close()
Close the connection to the RPC server.
- close in interface RPCClient
getserver_port
public int getserver_port()
Get server's port number.
Call this function on a connected client object only.
setServer
public void setServer(String host,
int proto)
throws rpc_errCloses existing connection and connect to another server.
- setServer in interface RPCClient
host - Server hostnameproto - Protocol