public class PIMHello extends BasePacket
parent, payload| Constructor and Description |
|---|
PIMHello() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(PIMHelloOption opt)
Add a PIM Hello option to this hello message.
|
void |
createDefaultOptions()
Create a PIM Hello packet with the most common hello options and default
values.
|
IPacket |
deserialize(byte[] data,
int offset,
int length)
XXX: This is deprecated, DO NOT USE, use the deserializer() function instead.
|
static Deserializer<PIMHello> |
deserializer()
Deserialize this hello message.
|
Map<Short,PIMHelloOption> |
getOptions() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
String |
toString() |
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayloadpublic void createDefaultOptions()
public void addOption(PIMHelloOption opt)
opt - the PIM Hello option we are addingpublic Map<Short,PIMHelloOption> getOptions()
public byte[] serialize()
public IPacket deserialize(byte[] data, int offset, int length)
data - bytes to deserializeoffset - offset to start deserializing fromlength - length of the data to deserializepublic static Deserializer<PIMHello> deserializer()