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.<br><br><div class="gmail_quote">2010/11/5 Вячеслав Блинников <span dir="ltr"><<a href="mailto:slavmfm@gmail.com">slavmfm@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">How does server initiate disconnection? I thought that there are no<br>
messages between client and server except sending data - so in idle<br>
state (if even we will call the "enet_host_service()" function) no<br>
messages are sent to server but when we call this function (as you<br>
adviced me and it helped me very much) server DOES NOT initiate the<br>
disconnection. Why it happens?<br>
<div><div></div><div class="h5">_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</div></div></blockquote></div><br>