net.i2p.i2ptunnel.udp
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
remoteHost |
protected int |
remotePort |
protected DatagramSocket |
sock |
Constructor and Description |
---|
UDPSink(InetAddress host,
int port) |
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
DatagramSocket |
getSocket()
to pass to UDPSource constructor
|
void |
send(Destination src,
byte[] data) |
void |
stop() |
protected DatagramSocket sock
protected InetAddress remoteHost
protected int remotePort
public UDPSink(InetAddress host, int port)
public void send(Destination src, byte[] data)
public int getPort()
public DatagramSocket getSocket()
public void stop()