org.eclipse.ecf.provider.comm.tcp
Class SocketFactory
java.lang.Object
org.eclipse.ecf.provider.comm.tcp.SocketFactory
- All Implemented Interfaces:
- IClientSocketFactory, IServerSocketFactory
public class SocketFactory
- extends java.lang.Object
- implements IClientSocketFactory, IServerSocketFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultFactory
protected static SocketFactory defaultFactory
factory
protected static SocketFactory factory
SocketFactory
public SocketFactory()
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)