Because enet sends a message to the peer you're connected to, and you have to wait a bit 'till the message is sent. 50ms of enet_host_service should do it.
2010/11/5 Вячеслав Блинников <[email protected]> > How does server initiate disconnection? I thought that there are no > messages between client and server except sending data - so in idle > state (if even we will call the "enet_host_service()" function) no > messages are sent to server but when we call this function (as you > adviced me and it helped me very much) server DOES NOT initiate the > disconnection. Why it happens? > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss >
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
