public class RpcClient extends Object
| 构造器和说明 |
|---|
RpcClient(String address,
int port,
int timeOut,
String token,
String connectionId,
String clientPublicKey)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close(Exception e)
Close.
|
String |
getServerPublicKey() |
String |
readResult()
Description: 一直read line等待
|
void |
send(String msg)
Send message.
|
String |
sendAndReturn(String msg)
Send a request and wait response.
|
public RpcClient(String address, int port, int timeOut, String token, String connectionId, String clientPublicKey) throws IOException, Exception
address - port - timeOut - token - connectionId - clientPublicKey - IOExceptionExceptionpublic void send(String msg) throws SocketException, IOException, Exception
msg - SocketExceptionIOExceptionExceptionpublic String sendAndReturn(String msg) throws SocketException, IOException, Exception
msg - SocketExceptionIOExceptionExceptionpublic void close(Exception e)
public String getServerPublicKey()
public String readResult() throws IOException, Exception
IOExceptionExceptionCopyright © 2019. All Rights Reserved.