class TCPListener extends Object implements Listener
| Modifier and Type | Field and Description |
|---|---|
private Connection |
conn |
private TCPProtocolHandler |
handler |
private ServerSocket |
ss |
| Constructor and Description |
|---|
TCPListener(Connection conn,
TCPProtocolHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private ServerSocket |
createTLSServerSocket(Connection conn) |
SocketAddress |
getEndPoint() |
private void |
listen() |
private final Connection conn
private final TCPProtocolHandler handler
private final ServerSocket ss
public TCPListener(Connection conn, TCPProtocolHandler handler) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprivate ServerSocket createTLSServerSocket(Connection conn) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprivate void listen()
public SocketAddress getEndPoint()
getEndPoint in interface Listenerpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 dcm4che.org. All rights reserved.