class UDPListener extends Object implements Listener
| Modifier and Type | Field and Description |
|---|---|
private Connection |
conn |
private DatagramSocket |
ds |
private UDPProtocolHandler |
handler |
private static int |
MAX_PACKAGE_LEN |
| Constructor and Description |
|---|
UDPListener(Connection conn,
UDPProtocolHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SocketAddress |
getEndPoint() |
private void |
listen() |
private static final int MAX_PACKAGE_LEN
private final Connection conn
private final UDPProtocolHandler handler
private final DatagramSocket ds
public UDPListener(Connection conn, UDPProtocolHandler handler) 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.