Constructor and Description |
---|
SAMv3DatagramServer(SAMBridge parent,
String host,
int port,
Properties props)
Does not start listener.
|
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
int |
getPort() |
void |
send(SocketAddress addr,
ByteBuffer msg) |
void |
start()
Only call once.
|
void |
stopHandling()
Cannot be restarted.
|
public SAMv3DatagramServer(SAMBridge parent, String host, int port, Properties props) throws IOException
parent
- may be nullprops
- ignored for nowIOException
public void start()
public void stopHandling()
stopHandling
in interface Handler
public void send(SocketAddress addr, ByteBuffer msg) throws IOException
IOException
public String getHost()
public int getPort()