char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
Declarations for Canonicalize.
string m_location
Location (proxy name)
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
int64_t m_now
Current time of registering server.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
uint16_t decode_i16(const uint8_t **bufp, size_t *remainp)
Decode a 16-bit integer in little-endian order.
size_t encoded_length_internal() const override
Returns internal serialized length.
size_t encoded_length() const
Returns the encoded length of this object.
Logging routines and macros.
Compatibility Macros for C/C++.
bool m_lock_held
Lock held flag.
void encode_i16(uint8_t **bufp, uint16_t val)
Encode a 16-bit integer in little-endian order.
uint8_t encoding_version() const override
Returns encoding version.
void encode_i64(uint8_t **bufp, uint64_t val)
Encode a 64-bit integer in little-endian order.
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
Functions to serialize/deserialize primitives to/from a memory buffer.
void decode(const uint8_t **bufp, size_t *remainp)
Deserializes this object from a buffer.
Time related declarations.
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
uint16_t m_listen_port
Listen port.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
void encode_bool(uint8_t **bufp, bool bval)
Encodes a boolean into the given buffer.
void encode(uint8_t **bufp) const
Encodes the statistics to a serialized buffer.
Declarations for RegisterServer request parameters.
StatsSystem m_system_stats
System stats
int64_t get_ts64()
Returns the current time in nanoseconds as a 64bit number.