Skip to content

cf_client_set_send_rate

Category: net
GitHub: cute_networking.h


Caps how many queued message bytes the client pumps into the transport per second.

void cf_client_set_send_rate(CF_Client* client, int bytes_per_second);
Parameters Description
client The client.
bytes_per_second The budget. 0 (the default) means unlimited.

Remarks

The budget is what makes priorities matter: when messages are queued faster than the budget drains them, high-priority channels keep flowing while bulk waits locally. A message larger than one second's budget still sends, going into "debt" that throttles later sends. Raw cf_client_send packets bypass the budget entirely.

cf_client_channel_options
cf_client_send_msg
cf_server_set_send_rate