<div dir="ltr"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Hi,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
I’ve been trying to connect to the host:port that my ENetHost is bound to, i.e. connect and send to myself.</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Unfortunately this almost immediately results in event DISCONNECT.</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Looking at the archives I found the same problem raised 9 years ago (see below).</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Any reason for this behaviour?</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Regards,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Krasimir</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<br></div><h1 style="color:rgb(0,0,0);font-family:Times">[ENet-discuss] Connecting to self.</h1><b style="color:rgb(0,0,0);font-size:medium;font-family:Times">Adam D. Moss</b><span style="color:rgb(0,0,0);font-size:medium;font-family:Times"> </span><a href="mailto:enet-discuss%40cubik.org?Subject=%5BENet-discuss%5D%20Connecting%20to%20self.&In-Reply-To=" title="[ENet-discuss] Connecting to self." style="font-size:medium;font-family:Times">adam at gimp.org </a><br style="color:rgb(0,0,0);font-size:medium;font-family:Times">
<i style="color:rgb(0,0,0);font-size:medium;font-family:Times">Wed Dec 1 08:44:30 PST 2004</i><span style="color:rgb(0,0,0);font-size:medium;font-family:Times"></span><div style="color:rgb(0,0,0);font-size:medium;font-family:Times">
<br class=""></div><ul style="color:rgb(0,0,0);font-size:medium;font-family:Times"><li>Next message: <a href="http://lists.cubik.org/pipermail/enet-discuss/2004-December/000312.html">[ENet-discuss] Connecting to self.</a></li>
<li><b>Messages sorted by:</b> <a href="http://lists.cubik.org/pipermail/enet-discuss/2004-December/date.html#311">[ date ]</a> <a href="http://lists.cubik.org/pipermail/enet-discuss/2004-December/thread.html#311">[ thread ]</a> <a href="http://lists.cubik.org/pipermail/enet-discuss/2004-December/subject.html#311">[ subject ]</a> <a href="http://lists.cubik.org/pipermail/enet-discuss/2004-December/author.html#311">[ author ]</a></li>
</ul><hr style="color:rgb(0,0,0);font-size:medium;font-family:Times"><pre style="color:rgb(0,0,0);font-size:12px">Hi!
I have a funny problem.  My app listens on a port and then attempts
to connect to itself (for testing purposes, for now).  But this
merely eventually causes a DISCONNECT (presumably time-out) event,
with no CONNECT.

However, if I launch a second process and do the connect from
there, the connection is fine.

Am I being stupid for attempting to have a process be a client
of its own server, or is there some unexpected strangeness which
prevents an ENet server from being its own client?

Thanks,
--Adam</pre></div>