Skip to content

CF_ServerEvent

Category: net
GitHub: cute_networking.h


An event from the server, likely a client payload packet.

Struct Members Description
CF_ServerEventType type The type of the server event. See CF_ServerEventType.
int client_index An index representing this particular client.
uint64_t client_id A unique identifier for this particular client, as read from the connect token.
CF_Address endpoint The address and port of the incoming connection.
int client_index An index representing this particular client.
int client_index An index representing this particular client.
void* data Pointer to the packet's payload data. Send this back to cf_server_free_packet when done.
int size Size of the packet at the data pointer.

cf_server_free_packet
cf_server_pop_event
cf_server_update