public class SOCKSHeader extends Object
| Constructor and Description |
|---|
SOCKSHeader(byte[] data) |
SOCKSHeader(Destination dest,
int port)
Make a dummy header from a dest,
for those cases where we want to receive unsolicited datagrams.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
Destination |
getDestination() |
String |
getHost()
As of 0.9.53, returns IP address as a string for address types 1 and 4.
|
int |
getPort() |
public SOCKSHeader(byte[] data)
data - the whole packetIllegalArgumentException - on bad socks formatpublic SOCKSHeader(Destination dest, int port)
port - I2CP port 0-65535public byte[] getBytes()
public Destination getDestination()
public String getHost()
public int getPort()