[ENet-discuss] Questioning a server without connecting to it

Emmanuel Rivoire manu.n02 at laposte.net
Thu May 24 08:08:14 PDT 2012


Hello,

because without this, it'd require at least 2 back & forth instead of 
just 1 to get the needed info, + maybe some local extra processing 
for the peer creation/destruction, so it'd be less efficient & 
slower, which can be problematic in case there's a lot of online servers.
Plus, in case the server is full, I don't know how react the server 
to a peer connection request. If it just times out, it's too slow to 
get the result, and I can't grab the status info.

At 22:00 24/05/2012, you wrote:
>Why do you want to do that? You're already talking about a request/response
>flow, which only makes sense if you first establish a connection with the
>server and then wait for a response.
>
>If you don't want to keep the ENetPeer around on the server, then close it
>gracefully with enet_peer_disconnect() after you've sent the response.




More information about the ENet-discuss mailing list