org.eclipse.ecf.provider.comm.tcp
Class SocketFactory

java.lang.Object
  extended by org.eclipse.ecf.provider.comm.tcp.SocketFactory
All Implemented Interfaces:
IClientSocketFactory, IServerSocketFactory

public class SocketFactory
extends java.lang.Object
implements IClientSocketFactory, IServerSocketFactory


Field Summary
protected static SocketFactory defaultFactory
           
protected static SocketFactory factory
           
 
Constructor Summary
SocketFactory()
           
 
Method Summary
 java.net.ServerSocket createServerSocket(int port, int backlog)
           
 java.net.Socket createSocket(java.lang.String name, int port, int timeout)
           
static SocketFactory getDefaultSocketFactory()
           
static SocketFactory getSocketFactory()
           
static void setSocketFactory(SocketFactory fact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFactory

protected static SocketFactory defaultFactory

factory

protected static SocketFactory factory
Constructor Detail

SocketFactory

public SocketFactory()
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String name,
                                    int port,
                                    int timeout)
                             throws java.io.IOException
Specified by:
createSocket in interface IClientSocketFactory
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int port,
                                                int backlog)
                                         throws java.io.IOException
Specified by:
createServerSocket in interface IServerSocketFactory
Throws:
java.io.IOException

getSocketFactory

public static SocketFactory getSocketFactory()

getDefaultSocketFactory

public static SocketFactory getDefaultSocketFactory()

setSocketFactory

public static void setSocketFactory(SocketFactory fact)