net.named_data.jndn
public class NetworkNack extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NetworkNack.Reason
A NetworkNack.Reason specifies the reason in a NetworkNack packet.
|
Constructor and Description |
---|
NetworkNack() |
Modifier and Type | Method and Description |
---|---|
static NetworkNack |
getFirstHeader(LpPacket lpPacket)
Get the first header field in lpPacket which is a NetworkNack.
|
int |
getOtherReasonCode()
Get the reason code from the packet which is other than a recognized
Reason enum value.
|
NetworkNack.Reason |
getReason()
Get the network Nack reason.
|
void |
setOtherReasonCode(int otherReasonCode)
Set the packet's reason code to use when the reason enum is
Reason.OTHER_CODE.
|
void |
setReason(NetworkNack.Reason reason)
Set the network Nack reason.
|
public NetworkNack.Reason getReason()
public int getOtherReasonCode()
public void setReason(NetworkNack.Reason reason)
reason
- The network Nack reason enum value. If the packet's reason
code is not a recognized Reason enum value, use Reason.OTHER_CODE and call
setOtherReasonCode().public void setOtherReasonCode(int otherReasonCode)
otherReasonCode
- The packet's unrecognized reason code.public static NetworkNack getFirstHeader(LpPacket lpPacket)
lpPacket
- The LpPacket with the header fields to search.Copyright © 2016. All rights reserved.