cf_server_pop_msg¶
Category: net
GitHub: cute_networking.h
Pops the next message received from any client, if any.
| Parameters | Description |
|---|---|
server |
The server. |
client_index |
Which client sent it. |
id |
The message's user id. |
data |
Pointer to the message bytes. Free it with cf_server_free_msg. |
size |
Size of data in bytes. |
Return Value¶
Returns true when a message was popped.
Remarks¶
Incoming messages surface here only after cf_server_pop_event has drained the events carrying them, so keep popping events each update like normal.