org.objectweb.jonathan.protocols.ip.api
Interface TcpIpSrvConnectionFactory
public interface TcpIpSrvConnectionFactory
TcpIpSrvConnectionFactory encapsulates a server socket.
void | close() - Tells the factory to release the server socket.
|
String | getHostName() - Returns the host name of the encapsulated socket.
|
int | getPort() - Returns the local port of the encapsulated socket.
|
IpConnection | newSrvConnection(IpSession session) - Returns a new connection for the provided session, obtained from the
encapuslated server socket.
|
close
public void close()
Tells the factory to release the server socket.
getHostName
public String getHostName()
Returns the host name of the encapsulated socket.
- the host name of the encapsulated socket.
getPort
public int getPort()
Returns the local port of the encapsulated socket.
- the local port of the encapsulated socket.
newSrvConnection
public IpConnection newSrvConnection(IpSession session)
throws JonathanException
Returns a new connection for the provided session, obtained from the
encapuslated server socket.
session
- an IpSession.
- a new IpConnection.