|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Tcp.Flag>
org.jnetpcap.protocol.tcpip.Tcp.Flag
public static enum Tcp.Flag
Flags (8 bits) (aka Control bits) - contains 8 1-bit flags
| Enum Constant Summary | |
|---|---|
ACK
ACK (1 bit) - indicates that the Acknowledgment field is significant. |
|
CWR
CWR (1 bit) - Congestion Window Reduced (CWR) flag is set by the sending host to indicate that it received a TCP segment with the ECE flag set and had responded in congestion control mechanism (added to header by RFC 3168). |
|
ECE
ECE (1 bit) - ECN-Echo indicates If the SYN flag is set, that the TCP peer is ECN capable. |
|
FIN
FIN (1 bit) - No more data from sender. |
|
PSH
PSH (1 bit) - Push function. |
|
RST
RST (1 bit) - Reset the connection. |
|
SYN
SYN (1 bit) - Synchronize sequence numbers. |
|
URG
URG (1 bit) - indicates that the Urgent pointer field is significant. |
|
| Method Summary | |
|---|---|
static java.util.Set<Tcp.Flag> |
asSet(int flags)
Converts 8 contigeous bits of an inteteger to a set collection of enum constants, each representing if a flag is set in the original integer. |
static java.lang.String |
toCompactString(int flags)
Returns a compact string representation of the bit flags that are set within the integer. |
static java.lang.String |
toCompactString(java.util.Set<Tcp.Flag> flags)
Returns a compact string representation of the flags contained with the collection's set. |
static Tcp.Flag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Tcp.Flag[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Tcp.Flag ACK
public static final Tcp.Flag CWR
public static final Tcp.Flag ECE
public static final Tcp.Flag FIN
public static final Tcp.Flag PSH
public static final Tcp.Flag RST
public static final Tcp.Flag SYN
public static final Tcp.Flag URG
| Method Detail |
|---|
public static Tcp.Flag[] values()
for (Tcp.Flag c : Tcp.Flag.values()) System.out.println(c);
public static Tcp.Flag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static java.util.Set<Tcp.Flag> asSet(int flags)
flags - integer containing the flags (8-bits)
public static java.lang.String toCompactString(int flags)
flags - integer containing the flags (8-bit)
public static java.lang.String toCompactString(java.util.Set<Tcp.Flag> flags)
flags - a collection's set of flags
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||