net.i2p.i2ptunnel.socks
Class SOCKSUDPWrapper
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPWrapper
- All Implemented Interfaces:
- Sink, Source
public class SOCKSUDPWrapper
- extends Object
- implements Source, Sink
Put a SOCKS header on a datagram
Ref: RFC 1928
- Author:
- zzz
Method Summary |
void |
send(Destination from,
byte[] data)
Use the cached header, which should have the host string and port |
void |
setSink(Sink sink)
|
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOCKSUDPWrapper
public SOCKSUDPWrapper(Map<Destination,SOCKSHeader> cache)
setSink
public void setSink(Sink sink)
- Specified by:
setSink
in interface Source
start
public void start()
- Specified by:
start
in interface Source
send
public void send(Destination from,
byte[] data)
- Use the cached header, which should have the host string and port
- Specified by:
send
in interface Sink