public class RpcSocketHelper
extends java.lang.Object
| Constructor and Description |
|---|
RpcSocketHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureSocket(java.net.Socket socket,
java.util.Properties properties)
Configure a socket with specified properties.
|
static java.net.Socket |
createSocket(java.lang.String host,
int port,
java.util.Properties properties,
boolean secure)
Create a socket with the specified properties and connect to the specified host and port.
|
public static void configureSocket(java.net.Socket socket,
java.util.Properties properties)
socket - socketproperties - propertiespublic static java.net.Socket createSocket(java.lang.String host,
int port,
java.util.Properties properties,
boolean secure)
throws java.io.IOException
host - hostport - portproperties - propertiessecure - securejava.io.IOException - on error