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
IOException
GeneralSecurityException
private ServerSocket createTLSServerSocket(Connection conn) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
private void listen()
public SocketAddress getEndPoint()
getEndPoint
in interface Listener
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 dcm4che.org. All rights reserved.