|
| 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") |
| |