netbula.ORPC
Class ClientUDP
ClientUDP()
|
ClientUDP(InetAddress inetAddress, int prog, int ver)
|
ClientUDP(InetAddress inetAddress, int prog, int ver, int port)
|
ClientUDP(String host, int prog, int ver)
|
ClientUDP(String hostname, int prog, int ver, int port)
|
boolean | bcast(InetAddress baddr, int prog, int vers, int proc, XDT args, XDT res, ReplyHandler handler)- Broadcast RPC.
|
boolean | bcast(String baddr, int prog, int vers, int proc, XDT args, XDT res, ReplyHandler handler)
|
void | call(int proc, XDT inarg, XDT outarg)- Call an RPC procedure.
|
boolean | close()- Close the connection to the RPC server.
|
boolean | connect()- For UDP the connect function initialize certain internal data needed
for the subsequent RPC calls.
|
int | setRetryTimeout(int reto)- Set retry timeout to reto milliseconds if reto >0
|
call, call_proc0, close, connect, finalize, getAuth, getRpcProgramNumber, getRpcProtocol, getRpcVersionNumber, setAuth, setConnectionTimeout, setRpcProgramNumber, setRpcProtocol, setRpcVersionNumber, setServer, setTimeout |
ClientUDP
public ClientUDP()
ClientUDP
public ClientUDP(InetAddress inetAddress,
int prog,
int ver)
throws rpc_err
ClientUDP
public ClientUDP(InetAddress inetAddress,
int prog,
int ver,
int port)
throws rpc_err
ClientUDP
public ClientUDP(String host,
int prog,
int ver)
throws rpc_err
ClientUDP
public ClientUDP(String hostname,
int prog,
int ver,
int port)
throws rpc_err
bcast
public boolean bcast(InetAddress baddr,
int prog,
int vers,
int proc,
XDT args,
XDT res,
ReplyHandler handler)
throws rpc_errBroadcast RPC.
bcast
public boolean bcast(String baddr,
int prog,
int vers,
int proc,
XDT args,
XDT res,
ReplyHandler handler)
throws rpc_err
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 InetRPCClient
connect
public boolean connect()
throws rpc_errFor UDP the connect function initialize certain internal data needed
for the subsequent RPC calls.
- connect in interface InetRPCClient
setRetryTimeout
public int setRetryTimeout(int reto)
Set retry timeout to reto milliseconds if reto >0
- previous retry timeout value