cf_client_connect_insecure¶
Category: net
GitHub: cute_networking.h
Connects to a cf_make_server_insecure server in one call. INSECURE -- local/testing only.
CF_Result cf_client_connect_insecure(CF_Client* client, const char* address_and_port, uint64_t application_id);
| Parameters | Description |
|---|---|
address_and_port |
The server to connect to, e.g. "127.0.0.1:5000". |
application_id |
Your game id; must match the server. |
Return Value¶
Returns any errors as a CF_Result.
Remarks¶
Generates a connect token from CF's built-in development keypair (with a random client id so many clients can connect) and connects -- no web service or key handling required.