public class PIMHello extends BasePacket
| Modifier and Type | Class and Description |
|---|---|
static class |
PIMHello.Option
PIM Option types.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMUM_OPTION_LEN_BYTES |
parent, payload| Constructor and Description |
|---|
PIMHello() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGenId()
Add the genid.
|
void |
addGenId(int genid)
Add a Gen ID.
|
void |
addHoldtime(int holdtime)
Add the holdtime to the packet.
|
void |
addPriority(int priority)
Add the hello priority.
|
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.
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayloadpublic static final int MINIMUM_OPTION_LEN_BYTES
public void addHoldtime(int holdtime)
holdtime - the holdtime in secondspublic void addPriority(int priority)
priority - default is 1, the higher the betterpublic void addGenId(int genid)
genid - a random generated number, changes only after reset.public void addGenId()
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()
Copyright © 2015. All rights reserved.