public class TcpRpcClient extends RpcClient
| Constructor and Description |
|---|
TcpRpcClient(InetAddress addr,
int port,
InetAddress fromAddr,
int fromPort,
int maxRpcSize)
Class constructor
|
TcpRpcClient(InetAddress addr,
int port,
int maxRpcSize)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection()
Close the connection to the remote RPC server
|
RpcPacket |
sendRPC(RpcPacket rpc,
RpcPacket rxRpc)
Send an RPC request using the socket connection, and receive a response
|
getMaximumRpcSize, getServerAddress, getServerPort, isProtocol, toStringpublic TcpRpcClient(InetAddress addr, int port, int maxRpcSize) throws IOException
addr - InetAddressport - intmaxRpcSize - intIOExceptionpublic TcpRpcClient(InetAddress addr, int port, InetAddress fromAddr, int fromPort, int maxRpcSize) throws IOException
addr - InetAddressport - intfromAddr - InetAddressfromPort - intmaxRpcSize - intIOExceptionpublic RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws IOException
sendRPC in class RpcClientrpc - RpcPacketrxRpc - RpcPacketIOExceptionpublic void closeConnection()
closeConnection in class RpcClientCopyright © 2005–2015 Alfresco Software. All rights reserved.