Or enet_host_connect(), since it is obviously a new connection attempt and as such the previously allocated peer has no point in existence :)<br><br><div class="gmail_quote">2011/1/4 Jay Sprenkle <span dir="ltr"><<a href="mailto:jsprenkle@gmail.com">jsprenkle@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;">If you look at enet_host_connect() source you see it returns a peer from ENetHost. <br>You don't need to delete the peer, the call to enet_host_destroy() will do that.<br>
<br><br><div class="gmail_quote">2011/1/4 Вячеслав Блинников <span dir="ltr"><<a href="mailto:slavmfm@gmail.com" target="_blank">slavmfm@gmail.com</a>></span><div class="im"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">So, the question is "how to delete (destroy) an ENetPeer?" both for the garbage collection purpose and to have the opportunity to create new one.<br>


</blockquote></div></div><br>
<br>_______________________________________________<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>
<br></blockquote></div><br>