Commit Graph

15 Commits

Author SHA1 Message Date
DL6ER 333163529f Fix signedness of integer constant. This was a problem on 32bit platforms.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-03 12:20:38 +01:00
Mcat12 5341b18ecf Handle possible pack_fixstr or pack_str32 error
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-21 15:40:58 -05:00
Mcat12 b6b7b5708b Only allow up to 2GB strings to be sent
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-21 12:46:46 -05:00
Mcat12 9f5ae62423 Fix indentation in msgpack.c
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-20 21:40:41 -05:00
Mcat12 da7c354b71 Add socket implementation to getUnknownQueries and use istelnet
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-07 23:29:16 -05:00
Mcat12 64a1408e5d Add socket implementation of getDBstats and use istelnet
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-07 22:51:04 -05:00
Mcat12 89ea9960aa Fix pack_uint64
It needed to have its endianness flipped.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-07 21:49:18 -05:00
Mcat12 81200a270d Add socket implementation to getMemoryUsage and use istelnet
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-07 21:10:14 -05:00
Mcat12 7d3dfb6351 Don't send fixarray for getAllQueries
It's unnecessary

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-06 12:33:13 -05:00
Mcat12 348a2ee81e Add socket implementation for getAllQueries
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-06 00:46:20 -05:00
Mcat12 4386138ddd Use uint8_t instead of unsigned char in msgpack.c
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-05 22:51:00 -05:00
Mcat12 4eaf794b63 Tighten parameters on pack_unsigned_char
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-05 22:48:43 -05:00
Mcat12 e54b3913f9 Add socket implementation for getOverTime
Adds the map16 structure to msgpack.c and tightens the pack_int
signature to only accept int32_t types.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-05 22:14:36 -05:00
Mcat12 616b10a599 Add swrite function
It will print a warning if an error happens, like the other s* functions
in socket.c

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-04 12:28:40 -05:00
Mcat12 e527985371 Implement getStats using MessagePack
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-01-04 12:04:04 -05:00