Hi, Alex Katebi wrote: > I am trying to implement remote procedure calls (RPC) for SQLite API to be > used in my application. > In particular sqlite3_column_double( ) returns a floating point double. > How can I write this double value into a TCP socket? > I have tried writing 8 bytes as integer values but the received valued at > the other end of the socket is incorrect. > I don't have a lot of experience with real numbers. Can someone help? >
Have a look at YAMI (http://www.msobczak.com/prog/yami/). It has the ability to send/receive following data types: eString = 1; /* ASCII string */ eWString = 2; /* wide string */ eInt = 3; /* integer */ eDouble = 4; /* double */ eByte = 5; /* opaque byte */ eBinary = 6; /* opaque binary data */ > Thanks, > -Alex -- Regards, Hakki Dogusan _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users