public class SocketFactory
extends java.lang.Object
Constructor and Description |
---|
SocketFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
createServerSocket(handle socketHandle)
Method for assigning a
SocketListenerImpl to the handle
defining it as a server-socket. |
static void |
createSocket(handle socketHandle)
Method for assigning a
SocketImpl to the handle defining it
as a socket. |
private static WrappedResource |
getServerSocket()
Method which returns a new SocketListenerImpl.
|
private static WrappedResource |
getSocket()
Method which returns a new SocketImpl.
|
public static void createSocket(handle socketHandle)
SocketImpl
to the handle defining it
as a socket.socketHandle
- The handle to which we will assign the socketpublic static void createServerSocket(handle socketHandle)
SocketListenerImpl
to the handle
defining it as a server-socket.socketHandle
- The handle to which we will assign the socketprivate static WrappedResource getServerSocket()
private static WrappedResource getSocket()