XML-RPC: best way to handle 64-bit values?
64-bit, c++, python, xml-rpc
Solution
Some libraries support 64 bits extensions, indeed, but there doesn't seem to be a standard. xmlrpc-c, for example, has a so called i8 but it doesn't work with python (at least not by default).
I would recommend to either:
- Convert the integer to string by hand and send it as such. XMLRPC will convert it to string anyway, so I would say this is reasonable.
- Break it in two 32 bits integers and send it as such.
Problem
So the official XML-RPC standard doesn't support 64-bit values. But in these modern times, 64-bit values are increasingly common. How do you handle these? What XML-RPC extensions are the most common? What language bindings are there? I'm especially interested in Python and C++, but all information is appreciated.