public static class SSU2Payload.TerminationBlock extends SSU2Payload.Block
| Constructor and Description |
|---|
TerminationBlock(int reason,
long lastReceived)Create a session termination block. |
| Modifier and Type | Method and Description |
|---|---|
int | getDataLength()Return the 9 byte termination data length. |
int | writeData(byte[] tgt,
int off)Write the termination block data to the target array. |
getTotalLength, getType, toString, writepublic TerminationBlock(int reason,
long lastReceived)reason - termination reason code (0-255)lastReceived - highest sequence number receivedpublic 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