Re: Re: Re: Re: Re: Kad Update

Hi David,

[1] I don’t think QUuid is suitable for subclassing. I see you’ll need something like a bit field. There is a class in Qt but it does not support from/to QByteArray conversions, so I guess we’ll have to create one. Better use UInt128 at first and we should keep in mind we should make a template or a generic class out of it later. Regarding BinaryReader and BinaryWriter, you can extend them (i.e. derive from them) in the Kad package and add functions that read/write all Kad specific data. Are there others than UInt128?

[3] I’ll take a look at the packet definitions. Thanks!

Regards,

Peter

Would you like to post a relpy?


This post is a reply to:
Re: Re: Re: Re: Kad Update
... Peter Dimov wrote: Hi David, [1]. If you feel that QUuid won’t do, then stick to your UInt128. Later we can think about generalizing the concept into a generic class for ints (more...)

No follow-ups yet.