Package net.i2p.i2ptunnel.udp
Class UDPSink
java.lang.Object
net.i2p.i2ptunnel.udp.UDPSink
- All Implemented Interfaces:
Sink
public class UDPSink extends Object implements Sink
- Author:
- welterde
-
Field Summary
Fields Modifier and Type Field Description protected InetAddress
remoteHost
protected int
remotePort
protected DatagramSocket
sock
-
Constructor Summary
Constructors Constructor Description UDPSink(InetAddress host, int port)
-
Method Summary
Modifier and Type Method Description int
getPort()
DatagramSocket
getSocket()
to pass to UDPSource constructorvoid
send(Destination src, byte[] data)
void
stop()
-
Field Details
-
sock
-
remoteHost
-
remotePort
protected final int remotePort
-
-
Constructor Details
-
UDPSink
- Throws:
IllegalArgumentException
- on DatagramSocket IOException
-
-
Method Details