Package apple.networkextension.enums
Class NWTCPConnectionState
- java.lang.Object
-
- apple.networkextension.enums.NWTCPConnectionState
-
public final class NWTCPConnectionState extends java.lang.Object[@typedef] NWTCPConnectionState Defined connection states. New types may be defined in the future. API-Since: 9.0
-
-
Field Summary
Fields Modifier and Type Field Description static longCancelled[@constant] NWTCPConnectionStateCancelled The connection is cancelled.static longConnected[@constant] NWTCPConnectionStateConnected The connection is established.static longConnecting[@constant] NWTCPConnectionStateConnecting The connection is attempting API-Since: 9.0static longDisconnected[@constant] NWTCPConnectionStateDisconnected The connection is disconnected.static longInvalid[@constant] NWTCPConnectionStateInvalid The connection is in an invalid or uninitialized state API-Since: 9.0static longWaiting[@constant] NWTCPConnectionStateWaiting The connection has attempted but failed.
-
-
-
Field Detail
-
Invalid
public static final long Invalid
[@constant] NWTCPConnectionStateInvalid The connection is in an invalid or uninitialized state API-Since: 9.0- See Also:
- Constant Field Values
-
Connecting
public static final long Connecting
[@constant] NWTCPConnectionStateConnecting The connection is attempting API-Since: 9.0- See Also:
- Constant Field Values
-
Waiting
public static final long Waiting
[@constant] NWTCPConnectionStateWaiting The connection has attempted but failed. It is now waiting for better condition(s) before trying again. API-Since: 9.0- See Also:
- Constant Field Values
-
Connected
public static final long Connected
[@constant] NWTCPConnectionStateConnected The connection is established. It is now possible to transfer data. If TLS is in use, the TLS handshake would have finished when the connection is in this state. API-Since: 9.0- See Also:
- Constant Field Values
-
Disconnected
public static final long Disconnected
[@constant] NWTCPConnectionStateDisconnected The connection is disconnected. It is no longer possible to transfer data. The application should call cancellation method to clean up resources when the connection is in this state. API-Since: 9.0- See Also:
- Constant Field Values
-
Cancelled
public static final long Cancelled
[@constant] NWTCPConnectionStateCancelled The connection is cancelled. This is triggered by the cancellation method. API-Since: 9.0- See Also:
- Constant Field Values
-
-