Skip to content

cf_client_pop_packet

Category: net
GitHub: cute_networking.h


Returns a packet from the server, if available.

bool cf_client_pop_packet(CF_Client* client, void** packet, int* size, bool* was_sent_reliably);
Parameters Description
client The client.
packet A pointer to the packet will be written here.
size The size of packet will be written here, in bytes.
was_sent_reliably true if the packet was a reliable packet.

Return Value

Returns true if a packet was popped.

Remarks

You must free this packet when you're done by calling cf_client_free_packet.

CF_Client
cf_client_send
cf_client_free_packet