public enum TcpState extends Enum<TcpState>
| Enum Constant and Description |
|---|
Close |
CloseWait |
Closing |
Established |
FinWait1 |
FinWait2 |
LastAck |
Listen |
SynRecv |
SynSent |
TimeWait |
Unknow |
| Modifier and Type | Method and Description |
|---|---|
static TcpState |
get(int stateNumber) |
static TcpState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TcpState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TcpState Established
public static final TcpState SynSent
public static final TcpState SynRecv
public static final TcpState FinWait1
public static final TcpState FinWait2
public static final TcpState TimeWait
public static final TcpState Close
public static final TcpState CloseWait
public static final TcpState LastAck
public static final TcpState Listen
public static final TcpState Closing
public static final TcpState Unknow
public static TcpState[] values()
for (TcpState c : TcpState.values()) System.out.println(c);
public static TcpState 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 TcpState get(int stateNumber)
Copyright © 2018. All rights reserved.