hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
|
Typedefs | |
typedef std::vector< uint8_t > | bytes |
typedef std::vector< RPCDef > | RPCDefs |
Functions | |
void | sendData (int socket, const uint8_t *d, size_t sz) |
void | sendString (int socket, const std::string &s) |
void | sendBytes (int socket, const bytes &x) |
void | recvData (int socket, uint8_t *d, size_t sz) |
void | recvString (int socket, std::string *x) |
void | setBlockingBit (int socket, bool block) |
size_t | recvDataPartial (int socket, uint8_t *d, size_t sz) |
int | initSession (int s, const RPCDefs &rpcds) |
int | makeConnection (int s, sockaddr *saddr, size_t len) |
int | makeConnection (const hostent &host, int port) |
int | makeConnection (const std::string &host, size_t port) |
int | makeConnection (const std::string &host, const std::string &port) |
int | makeConnection (const std::string &hostport) |
template<typename T > | |
void | w (const T &x, bytes *out) |
void | ws (const char *x, bytes *out) |
void | ws (const std::string &x, bytes *out) |
void | ws (const bytes &x, bytes *out) |
void | encode_primty (const char *tn, bytes *out) |
_HNET_DEFINE_PRIMTYS (bool, "bool") | |
_HNET_DEFINE_PRIMTYS (uint8_t, "byte") | |
_HNET_DEFINE_PRIMTYS (char, "char") | |
_HNET_DEFINE_PRIMTYS (int16_t, "short") | |
_HNET_DEFINE_PRIMTYS (uint16_t, "short") | |
_HNET_DEFINE_PRIMTYS (int32_t, "int") | |
_HNET_DEFINE_PRIMTYS (uint32_t, "int") | |
_HNET_DEFINE_PRIMTYS (int64_t, "long") | |
_HNET_DEFINE_PRIMTYS (uint64_t, "long") | |
_HNET_DEFINE_PRIMTYS (float, "float") | |
_HNET_DEFINE_PRIMTYS (double, "double") | |
typedef std::vector<uint8_t> hobbes::net::bytes |
typedef std::vector<RPCDef> hobbes::net::RPCDefs |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | bool | , |
"bool" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | uint8_t | , |
"byte" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | char | , |
"char" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | int16_t | , |
"short" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | uint16_t | , |
"short" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | int32_t | , |
"int" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | uint32_t | , |
"int" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | int64_t | , |
"long" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | uint64_t | , |
"long" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | float | , |
"float" | |||
) |
hobbes::net::_HNET_DEFINE_PRIMTYS | ( | double | , |
"double" | |||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void hobbes::net::w | ( | const T & | x, |
bytes * | out | ||
) |
|
inline |
|
inline |