The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Re: xPLHubs (again!)





> How will this 64-bit number be written out?  Decimal number
> or 16 digit hex value?

Decimal is fine with me.

> BTW, can fprintf etc handle 64-bit integers?

No idea... You're the C++ expert ;-)

But .NET can :-)

Seriously though, if it prooves to be a problem, why don't we use a
binary format file instead - it'd be even easier to read/write.
If I've got this right (and it is first thing on a Monday morning, so I
could be way off here):
- 2 bytes for port number (unsigned 16-bit integer)
- 1 byte for heartbeat interval
- 8 bytes for 64-bit filetime

We can just repeat the above structure for each hub client present in
the file, as each one will be a fixed length.

Any thoughts?

Regards,

John


xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.