Class RpcSocketHelper
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.stream.helper.RpcSocketHelper
-
public class RpcSocketHelper extends java.lang.ObjectHelper class for creating and configuring sockets.
-
-
Constructor Summary
Constructors Constructor Description RpcSocketHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigureSocket(java.net.Socket socket, java.util.Properties properties)Configure a socket with specified properties.static java.net.SocketcreateSocket(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.
-
-
-
Method Detail
-
configureSocket
public static void configureSocket(java.net.Socket socket, java.util.Properties properties)Configure a socket with specified properties.- Parameters:
socket- socketproperties- properties
-
createSocket
public static java.net.Socket createSocket(java.lang.String host, int port, java.util.Properties properties, boolean secure) throws java.io.IOExceptionCreate a socket with the specified properties and connect to the specified host and port.- Parameters:
host- hostport- portproperties- propertiessecure- secure- Returns:
- Socket
- Throws:
java.io.IOException- on error
-
-