public interface SocketFactoryCallback
| Modifier and Type | Method and Description |
|---|---|
Socket |
getSocket(Object caller,
InetAddress iaddr,
int port)
Retrieve a connected socket to a specified destination
|
Socket |
getSocket(Object caller,
Socket s)
Retrieve a connected socket using a connected socket as basis.
|
Socket |
getSocket(Object caller,
String hostname,
int port)
Retrieve a connected socket to a specified destination
|
Socket |
getUnconnectedSocket(Object caller)
Retrieve an unconnected socket.
|
Socket getSocket(Object caller, InetAddress iaddr, int port) throws IOException, ConfException
caller - The requestor object instanceiaddr - The preferred addressport - The preferred portIOExceptionConfExceptionSocket getSocket(Object caller, Socket s)
caller - The requestor object instances - Socket getSocket(Object caller, String hostname, int port) throws IOException, ConfException
caller - The requestor object instancehostname - The preferred hostport - The preferred portIOExceptionConfExceptionSocket getUnconnectedSocket(Object caller) throws IOException, ConfException
caller - The requestor object instanceIOExceptionConfException