Package apple.network.enums
Class nw_connection_state_t
- java.lang.Object
-
- apple.network.enums.nw_connection_state_t
-
public final class nw_connection_state_t extends java.lang.Object[@typedef] nw_connection_state_t Connection states sent by nw_connection_set_state_changed_handler. States generally progress forward and do not move backwards, with the exception of preparing and waiting, which may alternate before the connection becomes ready or failed.
-
-
Field Summary
Fields Modifier and Type Field Description static intnw_connection_state_cancelled[@const] nw_connection_state_cancelled The connection has been cancelled by the callerstatic intnw_connection_state_failed[@const] nw_connection_state_failed The connection has irrecoverably closed or failedstatic intnw_connection_state_invalid[@const] nw_connection_state_invalid The state of the connection is not valid.static intnw_connection_state_preparing[@const] nw_connection_state_preparing The connection is in the process of establishingstatic intnw_connection_state_ready[@const] nw_connection_state_ready The connection is established and ready to send and receive data uponstatic intnw_connection_state_waiting[@const] nw_connection_state_waiting The connection is waiting for a usable network before re-attempting
-
-
-
Field Detail
-
nw_connection_state_invalid
public static final int nw_connection_state_invalid
[@const] nw_connection_state_invalid The state of the connection is not valid. This state will never be delivered in the connection's state update handler, and can be treated as an unexpected value.- See Also:
- Constant Field Values
-
nw_connection_state_waiting
public static final int nw_connection_state_waiting
[@const] nw_connection_state_waiting The connection is waiting for a usable network before re-attempting- See Also:
- Constant Field Values
-
nw_connection_state_preparing
public static final int nw_connection_state_preparing
[@const] nw_connection_state_preparing The connection is in the process of establishing- See Also:
- Constant Field Values
-
nw_connection_state_ready
public static final int nw_connection_state_ready
[@const] nw_connection_state_ready The connection is established and ready to send and receive data upon- See Also:
- Constant Field Values
-
nw_connection_state_failed
public static final int nw_connection_state_failed
[@const] nw_connection_state_failed The connection has irrecoverably closed or failed- See Also:
- Constant Field Values
-
nw_connection_state_cancelled
public static final int nw_connection_state_cancelled
[@const] nw_connection_state_cancelled The connection has been cancelled by the caller- See Also:
- Constant Field Values
-
-