Skip to content

CF_ClientState

Category: net
GitHub: cute_networking.h


The various states of a CF_Client.

Values

Enum Description
CF_CLIENT_STATE_CONNECT_TOKEN_EXPIRED The connect token has expired.
CF_CLIENT_STATE_INVALID_CONNECT_TOKEN The connect token is invalid.
CF_CLIENT_STATE_CONNECTION_TIMED_OUT The connection attempt timed out.
CF_CLIENT_STATE_CHALLENGE_RESPONSE_TIMED_OUT The challenge response timed out.
CF_CLIENT_STATE_CONNECTION_REQUEST_TIMED_OUT The connection request timed out.
CF_CLIENT_STATE_CONNECTION_DENIED The connection was denied by the server.
CF_CLIENT_STATE_DISCONNECTED The client is disconnected.
CF_CLIENT_STATE_SENDING_CONNECTION_REQUEST The client is sending a connection request.
CF_CLIENT_STATE_SENDING_CHALLENGE_RESPONSE The client is sending a challenge response.
CF_CLIENT_STATE_CONNECTED The client is connected.

Remarks

Anything less than or equal to 0 is an error.

cf_client_state_get
cf_client_state_to_string