public enum TcpFlagMask extends Enum<TcpFlagMask>
Enum Constant and Description |
---|
ACK_SET |
ACK_UNSET |
FIN_SET |
FIN_UNSET |
PSH_SET |
PSH_UNSET |
RST_SET |
RST_UNSET |
SYN_SET |
SYN_UNSET |
URG_SET |
URG_UNSET |
Modifier and Type | Method and Description |
---|---|
static List<TcpFlagMask> |
encode(int flag,
int mask)
Encode TCP flags and masks into human readable Strings
|
static TcpFlagMask |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TcpFlagMask[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TcpFlagMask URG_SET
public static final TcpFlagMask URG_UNSET
public static final TcpFlagMask ACK_SET
public static final TcpFlagMask ACK_UNSET
public static final TcpFlagMask PSH_SET
public static final TcpFlagMask PSH_UNSET
public static final TcpFlagMask RST_SET
public static final TcpFlagMask RST_UNSET
public static final TcpFlagMask SYN_SET
public static final TcpFlagMask SYN_UNSET
public static final TcpFlagMask FIN_SET
public static final TcpFlagMask FIN_UNSET
public static TcpFlagMask[] values()
for (TcpFlagMask c : TcpFlagMask.values()) System.out.println(c);
public static TcpFlagMask valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static List<TcpFlagMask> encode(int flag, int mask)
flag
- TCP Flag valuemask
- TCP Flag maskCopyright © 2016. All Rights Reserved.