Package net.i2p.sam
Class SAMv3DatagramServer
- java.lang.Object
-
- net.i2p.sam.SAMv3DatagramServer
-
-
Constructor Summary
Constructors Constructor Description SAMv3DatagramServer(SAMBridge parent, String host, int port, Properties props)
Does not start listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHost()
int
getPort()
void
send(SocketAddress addr, ByteBuffer msg)
void
start()
Only call once.void
stopHandling()
Cannot be restarted.
-
-
-
Constructor Detail
-
SAMv3DatagramServer
public SAMv3DatagramServer(SAMBridge parent, String host, int port, Properties props) throws IOException
Does not start listener. Caller must call start().- Parameters:
parent
- may be nullprops
- ignored for now- Throws:
IOException
-
-
Method Detail
-
start
public void start()
Only call once.- Since:
- 0.9.22
-
stopHandling
public void stopHandling()
Cannot be restarted.- Specified by:
stopHandling
in interfaceHandler
- Since:
- 0.9.22
-
send
public void send(SocketAddress addr, ByteBuffer msg) throws IOException
- Throws:
IOException
-
getHost
public String getHost()
- Since:
- 0.9.24
-
getPort
public int getPort()
- Since:
- 0.9.24
-
-