<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hmm...<br>
      <br>
      I worry, if it's broadcasted or otherwise reused, and the last
      deref occurs from a disconnection,<br>
      or if code holds its own reference and later destroys it (for
      example if it is wrapping the packet<br>
      in a smart pointer on the stack when it calls Service) it will say
      it hasn't been sent.<br>
      <br>
      So it'd definitely need to happen independent of the
      dereferencing... Perhaps when<br>
      the last fragment is removed wasSent?<br>
      <br>
      James<br>
      <br>
      On 2/27/2013 9:35 AM, Lee Salzman wrote:<br>
    </div>
    <blockquote
cite="mid:CAPk1TVF6gZOphS0g1TEMxy1kwXEbWNV-5sbfgijZJdZkjoAa7w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Okay, ENET_PACKET_FLAG_SENT lives! MUAHAHAUAHA...
        er, anyway, it's in. :)</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Feb 27, 2013 at 4:23 PM, Lee
          Salzman <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:lsalzman@gmail.com" target="_blank">lsalzman@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">This gave me a stupid idea, that seems like
              an ideal solution...
              <div><br>
              </div>
              <div>Technically with the freeCallback you can't
                distinguish between sent or dropped packets without some
                hackery. But there is a stupid simple way to support
                this...</div>
              <div><br>
              </div>
              <div>I could just add something like
                ENET_PACKET_FLAG_SENT, which gets added onto the
                packet's flags when it's reference count drops to zero
                from the send queue.</div>
              <div><br>
              </div>
              <div>This way you can just check in the freeCallback if it
                got sent or not by looking at the flags. This will be in
                git shortly. :)</div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">
                    On Wed, Feb 27, 2013 at 4:10 PM, Thorbjørn Lindeijer
                    <span dir="ltr"><<a moz-do-not-send="true"
                        href="mailto:bjorn@lindeijer.nl" target="_blank">bjorn@lindeijer.nl</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>On Wed, Feb 27, 2013 at 2:50 PM, Syed Setia
                        Pernama <<a moz-do-not-send="true"
                          href="mailto:syedhs@yahoo.com" target="_blank">syedhs@yahoo.com</a>>
                        wrote:<br>
                        > Here is the thread:<br>
                        > <a moz-do-not-send="true"
href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/thread.html#1888"
                          target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/thread.html#1888</a><br>
                        > And then answer (a bit hack):-<br>
                        > <a moz-do-not-send="true"
href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/001887.html"
                          target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/001887.html</a><br>
                        <br>
                      </div>
                      To avoid confusion, the answer about using
                      freeCallback was actually over here:<br>
                      <br>
                      <a moz-do-not-send="true"
href="http://lists.cubik.org/pipermail/enet-discuss/2012-May/001888.html"
                        target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2012-May/001888.html</a><br>
                      <br>
                      Cheers,<br>
                      Bjørn<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>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <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>