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