java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.stream.helper.RpcSocketHelper

public class RpcSocketHelper extends Object
Helper class for creating and configuring sockets.
  • Constructor Details

    • RpcSocketHelper

      public RpcSocketHelper()
  • Method Details

    • configureSocket

      public static void configureSocket(Socket socket, Properties properties)
      Configure a socket with specified properties.
      Parameters:
      socket - socket
      properties - 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 - host
      port - port
      properties - properties
      secure - secure
      Returns:
      Socket
      Throws:
      IOException - on error