Package net.i2p.i2ptunnel.socks
Class SOCKSHeader
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSHeader
public class SOCKSHeader extends Object
Save the SOCKS header from a datagram
Ref: RFC 1928
- Author:
- zzz
-
Constructor Summary
Constructors Constructor Description SOCKSHeader(byte[] data)
SOCKSHeader(Destination dest)
Make a dummy header from a dest, for those cases where we want to receive unsolicited datagrams. -
Method Summary
Modifier and Type Method Description byte[]
getBytes()
Destination
getDestination()
String
getHost()
-
Constructor Details
-
SOCKSHeader
public SOCKSHeader(byte[] data)- Parameters:
data
- the whole packet
-
SOCKSHeader
Make a dummy header from a dest, for those cases where we want to receive unsolicited datagrams. Unused for now.
-
-
Method Details
-
getHost
-
getDestination
-
getBytes
public byte[] getBytes()
-