Skip to content

cf_make_client

Category: net
GitHub: cute_networking.h


Returns a new client.

CF_Client* cf_make_client(uint16_t port, uint64_t application_id, bool use_ipv6);
Parameters Description
port Port for opening a UDP socket.
application_id A unique number to identify your game, can be whatever value you like. This must be the same number as in cf_server_create.
use_ipv6 Whether or not the socket should turn on ipv6. Some users will not have ipv6 enabled, so consider setting to false.

CF_Client
cf_generate_connect_token
cf_destroy_client
cf_client_connect