cf_client_connect¶
Category: net
GitHub: cute_networking.h
Attempts to connect the CF_Client to a CF_Server.
Return Value¶
Returns any errors as a CF_Result.
Remarks¶
The client will make an attempt to connect to all servers listed in the connect token, one after another. If no server can be connected to the client's state will be set to an error state. Call cf_client_state_get to get the client's state. Once cf_client_connect is called then successive calls to cf_client_update is expected, where cf_client_update will perform the connection handshake and make connection attempts to your servers.
Related Pages¶
CF_Client
cf_make_client
cf_destroy_client
cf_client_update
cf_client_disconnect