<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">Actually, now that I know freeCallback
is intended for this use, I've added GetUserData and SetUserData<br>
functions on Packet (which sets the free callback and links to a
dictionary internally). A Freed event<br>
is just gravy with that in place. No cost in CPU time if it isn't
used. Either way it's easier:<br>
<br>
packet.Freed += p => { my code };<br>
<br>
I've put the new version up on my page for it and on NuGet. Let me
know if this is of use. :)<br>
<br>
James<br>
<br>
On 2/27/2013 2:23 AM, BS Flasher wrote:<br>
</div>
<blockquote
cite="mid:CAEN1THf6JRKQ9P2qAHoo58vti7GSMz6SXKzriy5MMQg7tSj4tQ@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
BS Flasher:<br>
<br>
Yes, I can make a method to let you get a callback on free.
That is no problem.<br>
I want to make sure the methods I add to the C# library are
useful, since once it's part<br>
of the library, I don't want to ever remove it, because that
would breaks people's software.<br>
So let's figure out the best way and then add it.<br>
<br>
James
<div class="im"><br>
</div>
</blockquote>
</div>
<br>
James, <br>
Don't touch your code. I added a referenceCount in your binding
and I am checking that. This way works. When a packet is
received or line is disconnected referenceCount will be 0 and it
is sufficient for my problem.<br>
<br>
Thank you so much. <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>