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.
|
NetworkNack |
setOtherReasonCode(int otherReasonCode)
Set the packet's reason code to use when the reason enum is
Reason.OTHER_CODE.
|
NetworkNack |
setReason(NetworkNack.Reason reason)
Set the network Nack reason.
|
public NetworkNack.Reason getReason()
public int getOtherReasonCode()
public NetworkNack 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 NetworkNack setOtherReasonCode(int otherReasonCode)
otherReasonCode - The packet's unrecognized reason code, which must be
non-negative.public static NetworkNack getFirstHeader(LpPacket lpPacket)
lpPacket - The LpPacket with the header fields to search.Copyright © 2019. All rights reserved.