<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This is the approach we took as well.<br>
    <br>
    On 2012-05-01 10:51, Ruud van Gaal wrote:
    <blockquote
cite="mid:CADULfbMgyahwvx05V_yFuPfY02e4JqEFstiNT3gfzURJ1dzT7w@mail.gmail.com"
      type="cite">It does affect things a bit too hardcoded for my
      taste; with all the versions sofar, I've made these parameters
      modifiable.<br>
      <br>
      - in enet.h, add these:<br>
      <br>
      extern int ENetPeerTimeOutMinimum;<br>
      extern int ENetPeerTimeOutMaximum;<br>
      <br>
      #define ENET_PEER_TIMEOUT_MINIMUM ENetPeerTimeOutMinimum<br>
      #define ENET_PEER_TIMEOUT_MAXIMUM ENetPeerTimeOutMaximum<br>
      <br>
      - in the enum where all these parameters are defined, comment the
      original ones out:<br>
      <br>
         //ENET_PEER_TIMEOUT_MINIMUM              = 5000,<br>
         //ENET_PEER_TIMEOUT_MAXIMUM              = 30000,<br>
      <br>
      - in callbacks.c, add these:<br>
      <br>
      int ENetPeerTimeOutMinimum=5*60000;<br>
      int ENetPeerTimeOutMaximum=5*60000;<br>
      <br>
      Then just modify these variables depending on your debug state, if
      desired. This makes it possible to tweak these (important)
      parameters per app.<br>
      <br>
      Cheers,<br>
      Ruud<br>
      <br>
      <div class="gmail_quote">On Mon, Apr 30, 2012 at 10:44 PM, Grant
        Mills <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:Grant_Mills@affirmednetworks.com"
            target="_blank">Grant_Mills@affirmednetworks.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div style="word-wrap:break-word">
            Hi James
            <div><br>
            </div>
            <div>in the include/enet/enet.h file. Increase the
              ENET_PEER_TIMEOUT_MINIMUM. It will be a value like "5000".
              This is 5 seconds. The upper bound
              (ENET_PEER_TIMEOUT_MAXIMUM) is around 30000. I would just
              boost both to 300000 then rebuild the enet libraries.</div>
            <div><br>
            </div>
            <div>/grant</div>
            <div> </div>
            <div><br>
            </div>
            <div>
              <div>
                <div class="im">
                  <div>On Apr 30, 2012, at 4:20 PM, James B wrote:</div>
                  <br>
                </div>
                <blockquote type="cite"><span
style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
                    <div style="font-size:10pt;font-family:Tahoma">
                      <div class="im">
                        <div dir="ltr">Is there anyway to increase
                          timeouts so that when I am debugging my game
                          (and stopped program execution in the
                          debugger), enet does not drop the connection? 
                          I would like to increase timeouts to 1-5
                          minutes if possible.<br>
                          <br>
                          James<br>
                        </div>
                      </div>
                      _______________________________________________<br>
                      ENet-discuss mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:ENet-discuss@cubik.org"
                        target="_blank">ENet-discuss@cubik.org</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.cubik.org/mailman/listinfo/enet-discuss"
                        target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
                    </div>
                  </span></blockquote>
              </div>
              <br>
              <div><span
style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span
style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
                    <div><br>
                      ---<br>
                      <table style="font-family:Helvetica,sans-serif"
                        cellpadding="0" cellspacing="0" width="100%">
                        <tbody>
                          <tr>
                            <td>
                              <table style="clear:both" cellpadding="0"
                                cellspacing="0">
                                <tbody>
                                  <tr>
                                    <td
style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170,170,170);padding-top:20px;padding-right:15px;padding-bottom:20px;padding-left:15px">
                                      <div
style="width:260px;background-color:rgb(183,203,218);padding-top:5px;padding-right:8px;padding-bottom:8px;padding-left:8px;margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px">
                                        <div style="font:normal normal
                                          normal 16px/normal
Helvetica,sans-serif;line-height:30px;color:rgb(9,56,93);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><b>Bug
                                            in my software<br>
                                            Disappears when in testing<br>
                                            Curse you, Heisenberg</b></div>
                                      </div>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                      <div><br>
                      </div>
                    </div>
                    <div><br>
                    </div>
                    <div><a moz-do-not-send="true"
                        href="mailto:grant_mills@affirmednetworks.com"
                        target="_blank">grant_mills@affirmednetworks.com</a></div>
                    <div><br>
                    </div>
                  </span><br>
                </span><br>
              </div>
              <br>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          ENet-discuss mailing list<br>
          <a moz-do-not-send="true" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
          <a moz-do-not-send="true"
            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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ENet-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a>
<a class="moz-txt-link-freetext" href="http://lists.cubik.org/mailman/listinfo/enet-discuss">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>