Class RpcSocketHelper
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.stream.helper.RpcSocketHelper
Helper class for creating and configuring sockets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureSocket(Socket socket, Properties properties) Configure a socket with specified properties.static SocketcreateSocket(String host, int port, Properties properties, boolean secure) Create a socket with the specified properties and connect to the specified host and port.
-
Constructor Details
-
RpcSocketHelper
public RpcSocketHelper()
-
-
Method Details
-
configureSocket
Configure a socket with specified properties.- Parameters:
socket- socketproperties- properties
-
createSocket
public static Socket createSocket(String host, int port, Properties properties, boolean secure) throws IOException Create a socket with the specified properties and connect to the specified host and port.- Parameters:
host- hostport- portproperties- propertiessecure- secure- Returns:
- Socket
- Throws:
IOException- on error
-