public static enum NetStat.BusyPort.TcpState extends Enum<NetStat.BusyPort.TcpState>
nettop utility used for Mac OS X is closed source but source for a variant
(netbottom.c) is available. The TCP state constants returned by nettop
are neither documented nor listed in an available source file. The values used in this
enum are presumed from the known values and the names of external references,
in the form of kNStatSrcTcpStateXxxxxxxxxx, made by netbottom.c.| Enum Constant and Description |
|---|
BOUND |
CLOSE |
CLOSE_WAIT |
CLOSED |
CLOSING |
DELETE_TCB |
ESTABLISHED |
FIN_WAIT_1 |
FIN_WAIT_2 |
IDLE |
LAST_ACK |
LISTEN |
SYN_RECEIVED |
SYN_SENT |
TIME_WAIT |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static NetStat.BusyPort.TcpState |
fromLsofString(String lsofStateString)
Determine the
TcpCode from the state string from the lsof command. |
static NetStat.BusyPort.TcpState |
fromMicrosoftNumber(int msStateNumber)
Determine the
TcpState from the state number corresponding to a Microsoft
System.Net.NetworkInformation.TcpState enum value. |
static NetStat.BusyPort.TcpState |
fromMicrosoftString(String msStateString)
Determine the
TcpState from the state string from the Microsoft Get-NetTCPConnection cmdlet. |
static NetStat.BusyPort.TcpState |
fromNettopString(String nettopStateString)
Determine the
TcpCode from the state string from the nettop command. |
static NetStat.BusyPort.TcpState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetStat.BusyPort.TcpState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetStat.BusyPort.TcpState UNKNOWN
public static final NetStat.BusyPort.TcpState CLOSED
public static final NetStat.BusyPort.TcpState LISTEN
public static final NetStat.BusyPort.TcpState SYN_SENT
public static final NetStat.BusyPort.TcpState SYN_RECEIVED
public static final NetStat.BusyPort.TcpState ESTABLISHED
public static final NetStat.BusyPort.TcpState FIN_WAIT_1
public static final NetStat.BusyPort.TcpState FIN_WAIT_2
public static final NetStat.BusyPort.TcpState CLOSE_WAIT
public static final NetStat.BusyPort.TcpState CLOSING
public static final NetStat.BusyPort.TcpState LAST_ACK
public static final NetStat.BusyPort.TcpState TIME_WAIT
public static final NetStat.BusyPort.TcpState DELETE_TCB
public static final NetStat.BusyPort.TcpState BOUND
public static final NetStat.BusyPort.TcpState CLOSE
public static final NetStat.BusyPort.TcpState IDLE
public static NetStat.BusyPort.TcpState[] values()
for (NetStat.BusyPort.TcpState c : NetStat.BusyPort.TcpState.values()) System.out.println(c);
public static NetStat.BusyPort.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 NetStat.BusyPort.TcpState fromNettopString(String nettopStateString)
TcpCode from the state string from the nettop command.nettopStateString - the state string from nettopTcpState corresponding to nettopStateStringEnumConstantNotPresentException - if nettopStateString is not a recognized TcpStatepublic static NetStat.BusyPort.TcpState fromLsofString(String lsofStateString)
TcpCode from the state string from the lsof command.lsofStateString - the state string from lsofTcpState corresponding to lsofStateStringEnumConstantNotPresentException - if lsofStateString is not a recognized TcpStatepublic static NetStat.BusyPort.TcpState fromMicrosoftString(String msStateString)
TcpState from the state string from the Microsoft Get-NetTCPConnection cmdlet.msStateString - the state string from the Get-NetTCPConnection cmdletTcpState corresponding to msStateStringEnumConstantNotPresentException - if msStateString is not a recognized TcpStatepublic static NetStat.BusyPort.TcpState fromMicrosoftNumber(int msStateNumber)
TcpState from the state number corresponding to a Microsoft
System.Net.NetworkInformation.TcpState enum value.msStateNumber - the TcpState enum numberTcpState corresponding to msStateNumberEnumConstantNotPresentException - if msStateNumber is not a recognized TcpStateCopyright © 2022. All rights reserved.