org.objectweb.jonathan.protocols.ip.api
Interface TcpIpSrvConnectionFactory


public interface TcpIpSrvConnectionFactory

TcpIpSrvConnectionFactory encapsulates a server socket.


Method Summary
 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.
 

Method Detail

newSrvConnection

public IpConnection newSrvConnection(IpSession session)
                              throws org.objectweb.jonathan.apis.kernel.JonathanException
Returns a new connection for the provided session, obtained from the encapuslated server socket.

Parameters:
session - an IpSession.
Returns:
a new IpConnection.
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

getPort

public int getPort()
Returns the local port of the encapsulated socket.

Returns:
the local port of the encapsulated socket.

getHostName

public String getHostName()
Returns the host name of the encapsulated socket.

Returns:
the host name of the encapsulated socket.

close

public void close()
Tells the factory to release the server socket.