com.perforce.p4java.impl.mapbased.rpc.stream.helper
Class RpcSocketHelper

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

public class RpcSocketHelper
extends Object

Helper class for creating and configuring sockets.


Constructor Summary
RpcSocketHelper()
           
 
Method Summary
static void configureSocket(Socket socket, Properties properties)
          Configure a socket with specified properties.
static Socket createSocket(String host, int port, Properties properties, boolean secure)
          Create a socket with the specified properties and connect to the specified host and port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcSocketHelper

public RpcSocketHelper()
Method Detail

configureSocket

public static void configureSocket(Socket socket,
                                   Properties properties)
Configure a socket with specified 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.

Throws:
IOException


Copyright © 2015 Perforce Software. All Rights Reserved.