public class TcpRpcClient extends RpcClient
| Constructor and Description |
|---|
TcpRpcClient(java.net.InetAddress addr,
int port,
java.net.InetAddress fromAddr,
int fromPort,
int maxRpcSize)
Class constructor
|
TcpRpcClient(java.net.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(java.net.InetAddress addr,
int port,
int maxRpcSize)
throws java.io.IOException
addr - InetAddressport - intmaxRpcSize - intjava.io.IOExceptionpublic TcpRpcClient(java.net.InetAddress addr,
int port,
java.net.InetAddress fromAddr,
int fromPort,
int maxRpcSize)
throws java.io.IOException
addr - InetAddressport - intfromAddr - InetAddressfromPort - intmaxRpcSize - intjava.io.IOExceptionpublic RpcPacket sendRPC(RpcPacket rpc, RpcPacket rxRpc) throws java.io.IOException
public void closeConnection()
closeConnection in class RpcClientCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.