Is there any reason for…

reference counting Packet base class ( as there could be no object as it is not concrete )

and reference counting the concrete packets ( like pong ? )

I was wondering why to maintain Packet::Data::ref and Pong::Data::ref separately ( Packet::Data::ref could suffice maybe ? )

— cheerio atul

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: Is there any reason for…
Hi Atul, Yes, that's wrong and you are right. I didn't get reference counting quite right at first when I implemented the first Gnutella packets. I guess you already know what (more...)