<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>
The problem I see is this:<br>
<br>
Either using referenceCount or freeCallback, just going on
destruction, there is no way to know why the packet was destroyed.<br>
ENet not needing it any more might just mean a disconnection as
well. Or what about enet_host_broadcast (C# Host.Broadcast)?<br>
It sends to many different peers. So what does it really tell you
about delivery for ENet to delete it?<br>
<br>
If it is good enough for you to know that ENet didn't need it any
more, the Packet structure's NativeData property can be used<br>
to get the low-level ENet structure. That has referenceCount and
freeCallback (for example, IntPtr refCount =
p.NativeData->referenceCount,<br>
though you will need to enable unsafe code in your project).
referenceCount does say internal use only as well...<br>
<br>
As for freeCallback, I could add helper functions to register
callbacks on freeing, easy, but I worry it is incomplete for the
reasons mentioned above.<br>
<br>
Your thoughts?<br>
<br>
James<br>
<br>
On 2/25/2013 2:09 PM, BS Flasher wrote:<br>
</div>
<blockquote
cite="mid:CAEN1THcUtjp=Y3mmE-17sjR=jsbMD2gn-DgM9U1gJAWB37cM7w@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks James,<br>
Your work is so great and is complete for me. But a little
another thing. Can you add a method for checking the delivery of
a reliable packet in sender (or a help for me to add that) ?<br>
<br>
<div class="gmail_quote">On Sun, Feb 24, 2013 at 4:45 PM, James
Bellinger <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:james@illusorystudios.com" target="_blank">james@illusorystudios.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Howdy,<br>
<br>
I've got one at:<br>
<br>
<a moz-do-not-send="true"
href="http://www.zer7.com/software.php?page=enetcs"
target="_blank">http://www.zer7.com/software.php?page=enetcs</a><br>
<br>
You can also get it on NuGet, but that package doesn't have
samples and has only XML documentation not a help file.<br>
Either way, it includes a sample that echoes data back and
forth between a client and server.<br>
<br>
The bindings are presently compiled for 32-bit, so you'll
need to go to Target CPU and choose x86.<br>
By 'can't compile that', do you need a .sln for a particular
version of Visual Studio, or...?<br>
<br>
James
<div>
<div class="h5"><br>
<br>
On 2/24/2013 2:59 AM, BS Flasher wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
Hi,<br>
Can anyone send me a compiled dll (or ready project)
for enet 1.3.6 in<br>
.net framework 2?<br>
I can't compile that.<br>
<br>
Thanks<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>
</blockquote>
<br>
_______________________________________________<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>
</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>