<div dir="ltr">You need the servicing on both client and server. Problem is, in the client you're waiting for the client to type the message to send to the server, so the servicing won't happen while the program is waiting, so it's probably disconnecting your clients because of that. If you create a thread to take care of ENet rather than have it on your main thread, you won't have this problem. If you're unfamiliar with threads, you could google for C++ threads or something like that.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 1:26 AM,  <span dir="ltr"><<a href="mailto:stuart@semag.juplo.com" target="_blank">stuart@semag.juplo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>I dont think i know what you mean? Do you mean move the packet sending somewhere else in the program because i think you need that in the while loop. Do you need the servicing on both client and server? </p><div><div class="h5">

<p> </p>
<p>On 2013-10-21 23:21, Nuno Silva wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">One thing I noticed that might have something to do with it is how you block your client programs to get a message to send to the server, maybe you should do the ENet code in another thread to prevent ENet from doing its host servicing while waiting for a message.</div>

<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Oct 21, 2013 at 11:05 PM, <span><<a href="mailto:stuart@semag.juplo.com" target="_blank">stuart@semag.juplo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="text-decoration:underline"></span>
<div>
<p><span style="font-size:small;font-family:arial">My Enet code dose not seem to be able to work correctly. I am new to enet and i would prefer this over a high level networking lib. On my pc it works how it should but when a client tries to connect to the server it connects but if another one connects they both get disconnected there is more information at <a href="http://www.ogre3d.org/forums/viewtopic.php?f=1&t=79188" target="_blank">http://www.ogre3d.org/forums/viewtopic.php?f=1&t=79188</a> if you want to look there. If any of you do have client and server code that you know works outside of lan i would like to see it so i can compare it and try it.<br>
</span></p>
<p><span style="font-size:small;font-family:arial"><span style="font-size:small"> Thanks</span></span></p>
<div> </div>
</div>
<br>_______________________________________________<br> ENet-discuss mailing list<br><a href="mailto:ENet-discuss@cubik.org" target="_blank">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>
</div>
<br>
<pre>_______________________________________________
ENet-discuss mailing list
<a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
</blockquote>
<p> </p>
<div> </div>
</div></div></div>
<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></div>