Skip to content

cf_client_channel_options

Category: net
GitHub: cute_networking.h


Configures one of the client's outgoing message channels.

void cf_client_channel_options(CF_Client* client, int channel, int priority, bool reliable);
Parameters Description
client The client.
channel Which channel, from 0 to CF_NET_MAX_CHANNELS - 1.
priority Channels with higher priority are pumped over the wire first each update. Default 0.
reliable If true every message on this channel arrives, in order. If false messages
may be lost under packet loss (but never corrupted or reordered). Default false.

Remarks

Configure channels once, right after creating the client. Changing reliability while messages are queued applies to messages not yet sent.

cf_client_send_msg
cf_client_set_send_rate
cf_server_channel_options