Package oshi.software.os
Enum InternetProtocolStats.TcpState
- java.lang.Object
-
- java.lang.Enum<InternetProtocolStats.TcpState>
-
- oshi.software.os.InternetProtocolStats.TcpState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InternetProtocolStats.TcpState>
- Enclosing interface:
- InternetProtocolStats
public static enum InternetProtocolStats.TcpState extends java.lang.Enum<InternetProtocolStats.TcpState>
The TCP connection state as described in RFC 793.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSE_WAIT
CLOSED
CLOSING
ESTABLISHED
FIN_WAIT_1
FIN_WAIT_2
LAST_ACK
LISTEN
NONE
SYN_RECV
SYN_SENT
TIME_WAIT
UNKNOWN
-
Constructor Summary
Constructors Modifier Constructor Description private
TcpState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternetProtocolStats.TcpState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InternetProtocolStats.TcpState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final InternetProtocolStats.TcpState UNKNOWN
-
CLOSED
public static final InternetProtocolStats.TcpState CLOSED
-
LISTEN
public static final InternetProtocolStats.TcpState LISTEN
-
SYN_SENT
public static final InternetProtocolStats.TcpState SYN_SENT
-
SYN_RECV
public static final InternetProtocolStats.TcpState SYN_RECV
-
ESTABLISHED
public static final InternetProtocolStats.TcpState ESTABLISHED
-
FIN_WAIT_1
public static final InternetProtocolStats.TcpState FIN_WAIT_1
-
FIN_WAIT_2
public static final InternetProtocolStats.TcpState FIN_WAIT_2
-
CLOSE_WAIT
public static final InternetProtocolStats.TcpState CLOSE_WAIT
-
CLOSING
public static final InternetProtocolStats.TcpState CLOSING
-
LAST_ACK
public static final InternetProtocolStats.TcpState LAST_ACK
-
TIME_WAIT
public static final InternetProtocolStats.TcpState TIME_WAIT
-
NONE
public static final InternetProtocolStats.TcpState NONE
-
-
Method Detail
-
values
public static InternetProtocolStats.TcpState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InternetProtocolStats.TcpState c : InternetProtocolStats.TcpState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InternetProtocolStats.TcpState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-