cf_server_send¶
Category: net
GitHub: cute_networking.h
Sends a packet to a client.
void cf_server_send(CF_Server* server, const void* packet, int size, int client_index, bool send_reliably);
| Parameters | Description |
|---|---|
| server | The server. |
| packet | Data to send. |
| size | Size of data in bytes. |
| client_index | An index representing a particular client, from CF_ServerEvent. |
| send_reliably | If true the packet will be sent reliably and in order. If false the packet will be sent just once, and may |
| arrive out of order or not at all. |