public class SOCKSUDPPort extends Object implements Source, Sink
| Constructor and Description |
|---|
SOCKSUDPPort(InetAddress host,
int port,
Map<Integer,SOCKSUDPPort> replyMap) |
| Modifier and Type | Method and Description |
|---|---|
int | getPort()Returns the UDP port number that this port is listening on. |
void | send(Destination from,
int fromPort,
int toPort,
byte[] data)May throw RuntimeException from underlying sink |
void | setSink(Sink sink)Sets the sink for incoming UDP datagrams from I2P. |
void | start()Starts the UDP source to begin receiving datagrams. |
void | stop()Stops the UDP source and sink, closing the underlying sockets. |
public SOCKSUDPPort(InetAddress host, int port, Map<Integer,SOCKSUDPPort> replyMap)
public int getPort()
public void send(Destination from, int fromPort, int toPort, byte[] data)
send in interface Sinkfrom - will be passed alongfromPort - will be passed alongtoPort - will be passed alongRuntimeExceptionpublic void setSink(Sink sink)
public void start()
public void stop()