cf_client_pop_msg¶
Category: net
GitHub: cute_networking.h
Pops the next message received from the server, if any.
| Parameters | Description |
|---|---|
client |
The client. |
id |
The message's user id. |
data |
Pointer to the message bytes. Free it with cf_client_free_msg. |
size |
Size of data in bytes. |
Return Value¶
Returns true when a message was popped.
Remarks¶
Incoming messages surface here as cf_client_pop_packet drains arriving packets, so keep popping packets each update like normal (even if you only ever use messages).