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.
|
java.util.Map<java.lang.Short,PIMHelloOption> |
getOptions() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
java.lang.String |
toString() |
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
public void createDefaultOptions()
public void addOption(PIMHelloOption opt)
opt
- the PIM Hello option we are addingpublic java.util.Map<java.lang.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()
public java.lang.String toString()
toString
in class java.lang.Object