enet icon indicating copy to clipboard operation
enet copied to clipboard

a way to send userdata to a non connected client

Open CapsAdmin opened this issue 10 years ago • 0 comments

something simple like void enet_host_userdata(ENetHost *host, char *data, size_t dataLength) where the userdata would be sent back (with some rate limits I guess) to anyone who is not connected and sends a magic packet to the host. If the data is too big there could be an initial first header packet that would contain size info.

Usages would be retrieving list of current players on a server and other server parameters.

CapsAdmin avatar Feb 17 '15 00:02 CapsAdmin