Constructor and Description |
---|
UdpListener() |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
int |
getMaxPacketSize() |
String |
getName() |
int |
getPort() |
void |
setDispatcher(AsyncDispatcher<TelemetryMessage> dispatcher) |
void |
setHost(String host) |
void |
setMaxPacketSize(int maxPacketSize) |
void |
setName(String name) |
void |
setPort(int port) |
void |
start() |
void |
stop() |
protected static ByteBuffer |
wrapContentsWithNioByteBuffer(io.netty.channel.socket.DatagramPacket packet) |
public void start() throws InterruptedException
start
in interface Listener
InterruptedException
public void stop() throws InterruptedException
stop
in interface Listener
InterruptedException
public String getHost()
public void setHost(String host)
public void setPort(int port)
public int getPort()
public int getMaxPacketSize()
public void setMaxPacketSize(int maxPacketSize)
public void setDispatcher(AsyncDispatcher<TelemetryMessage> dispatcher)
setDispatcher
in interface Listener
protected static ByteBuffer wrapContentsWithNioByteBuffer(io.netty.channel.socket.DatagramPacket packet)
Copyright © 2017. All rights reserved.