<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>After an eNet client establishes a connection to an eNet
Host, the client is disconnected after approximately 30 seconds. &nbsp;We have
traced this on the host side to a call to <span style='background:yellow'>enet_peer_reset</span>
in the enet_protocol_check_timeouts(&#8230;) function:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=blue><span style='color:blue'>if</span></font> (outgoingCommand
-&gt; roundTripTimeout &gt;= outgoingCommand -&gt; roundTripTimeoutLimit)<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=blue><span style='color:blue'>event</span></font> -&gt; type =
ENET_EVENT_TYPE_DISCONNECT;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=blue><span style='color:blue'>event</span></font> -&gt; peer =
peer;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='background:yellow'>enet_peer_reset (peer);</span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=blue><span style='color:blue'>return</span></font> 1;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>In this case the roundTripTimeout equals the
roundTripTimeoutLimit of 16,000 ms (or 16 seconds). &nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>I have added a call from the client application to
enet_peer_ping(&#8230;) that is on a timer to fire every 2 seconds &#8211; but the
disconnect still occurs. &nbsp;The host runs a perpetual loop that calls
enet_host_service(&#8230;).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><font size=1
face=Arial><span style='font-size:9.0pt;font-family:Arial'>Would you have any
suggestions or recommendations?<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><font size=1
face=Arial><span style='font-size:9.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>One thing I noticed from the Cube Legends source is that
they added a PING / PONG message so that whenever a <st1:place w:st="on">PING</st1:place>
message is received on the server, it immediately does an enet_peer_send of a
PONG message back to the client.&nbsp; Are there other and better ways to
handle &#8220;keep-alive&#8221; packets?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>-Doug<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Doug Kimzey<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>Software Developer<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'><img width=95 height=18 id="_x0000_i1025"
src="cid:image001.jpg@01C61DBE.235C96A0"></span></font><font size=1 face=Arial><span
style='font-size:9.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>DPRA D</span></font><font size=1 face=Arial><span
style='font-size:8.0pt;font-family:Arial'>EFENSE</span></font><font size=1
face=Arial><span style='font-size:9.0pt;font-family:Arial'> S</span></font><font
size=1 face=Arial><span style='font-size:8.0pt;font-family:Arial'>YSTEMS</span></font><font
size=1 face=Arial><span style='font-size:9.0pt;font-family:Arial'> G</span></font><font
size=1 face=Arial><span style='font-size:8.0pt;font-family:Arial'>ROUP<o:p></o:p></span></font></p>

<p class=MsoAutoSig><st1:Street w:st="on"><st1:address w:st="on"><font size=1
  face=Arial><span style='font-size:9.0pt;font-family:Arial'>10215 Technology
  Drive, Suite 201</span></font></st1:address></st1:Street><font size=1
face=Arial><span style='font-size:9.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><st1:place w:st="on"><st1:City w:st="on"><font size=1
  face=Arial><span style='font-size:9.0pt;font-family:Arial'>Knoxville</span></font></st1:City><font
 size=1 face=Arial><span style='font-size:9.0pt;font-family:Arial'>, <st1:State
 w:st="on">Tennessee</st1:State> <st1:PostalCode w:st="on">37932-3344</st1:PostalCode></span></font></st1:place><font
size=1 face=Arial><span style='font-size:9.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>Phone:&nbsp;&nbsp; 865.218.4237<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>Cell:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 865.382.0307<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>Email:&nbsp;&nbsp;&nbsp; doug.kimzey@dpra.com<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>Home:&nbsp;&nbsp;&nbsp;&nbsp; mdkimzey@comcast.net<o:p></o:p></span></font></p>

<p class=MsoAutoSig><font size=1 face=Arial><span style='font-size:9.0pt;
font-family:Arial'>www.defensesystemsgroup.com<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>