public static class SSU2Payload.AddressBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
AddressBlock(byte[] ip,
int port)Create an address block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the address data length (2 byte port + IP bytes). |
int | writeData(byte[] tgt,
int off)Write the address block data to the target array. |
getTotalLength, getType, toString, writepublic AddressBlock(byte[] ip,
int port)ip - the IP address bytes (IPv4 = 4 bytes, IPv6 = 16 bytes)port - the port numberpublic int getDataLength()
getDataLength in class SSU2Payload.Blockpublic int writeData(byte[] tgt,
int off)writeData in class SSU2Payload.Blocktgt - target array to write tooff - offset in the target array