|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.udp.UDPSink
public class UDPSink
Field Summary | |
---|---|
protected java.net.InetAddress |
remoteHost
|
protected int |
remotePort
|
protected java.net.DatagramSocket |
sock
|
Constructor Summary | |
---|---|
UDPSink(java.net.InetAddress host,
int port)
|
Method Summary | |
---|---|
int |
getPort()
|
java.net.DatagramSocket |
getSocket()
to pass to UDPSource constructor |
void |
send(Destination src,
byte[] data)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.net.DatagramSocket sock
protected java.net.InetAddress remoteHost
protected int remotePort
Constructor Detail |
---|
public UDPSink(java.net.InetAddress host, int port)
Method Detail |
---|
public void send(Destination src, byte[] data)
send
in interface Sink
public int getPort()
public java.net.DatagramSocket getSocket()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |