#include <teonet.hpp>
|
| TeoDB (Teonet *t, const std::string &peer, teoDbData **tdd) |
|
| TeoDB (const TeoDB &obj) |
|
virtual | ~TeoDB () |
|
Teonet * | getTeonet () const |
| Get pointer to teonet class object. More...
|
|
ksnetEvMgrClass * | getKe () const |
|
CQue * | getCQue () |
|
const char * | getPeer () const |
|
bool | checkPeer (const char *peer_name) |
|
std::unique_ptr< teoDbData > | prepareRequest (const void *key, size_t key_len, const void *data, size_t data_len, uint32_t id, size_t *tdd_len) |
|
ksnet_arp_data * | send (uint8_t cmd, const void *key, size_t key_len, const void *data=NULL, size_t data_len=0) |
|
template<typename Callback > |
ksnet_arp_data * | send (uint8_t cmd, const void *key, size_t key_len, Callback cb, double timeout, uint8_t cb_type, teo::teoPacket *rd=NULL, teoDbData **tdd=NULL, void *user_data=NULL) |
|
ksnet_arp_data * | send (uint8_t cmd, const void *key, size_t key_len, cqueCallback cb, double timeout, uint8_t cb_type, teo::teoPacket *rd=NULL, teoDbData **tdd=NULL, void *user_data=NULL) |
|
int | exec (uint32_t id) |
|
bool | process (teoEvents event, void *data) |
|
teo::Teonet::TeoDB::TeoDB |
( |
Teonet * |
t, |
|
|
const std::string & |
peer, |
|
|
teoDbData ** |
tdd |
|
) |
| |
|
inline |
teo::Teonet::TeoDB::TeoDB |
( |
const TeoDB & |
obj | ) |
|
|
inline |
virtual teo::Teonet::TeoDB::~TeoDB |
( |
| ) |
|
|
inlinevirtual |
bool teo::Teonet::TeoDB::checkPeer |
( |
const char * |
peer_name | ) |
|
|
inline |
int teo::Teonet::TeoDB::exec |
( |
uint32_t |
id | ) |
|
|
inline |
CQue* teo::Teonet::TeoDB::getCQue |
( |
| ) |
|
|
inline |
const char* teo::Teonet::TeoDB::getPeer |
( |
| ) |
const |
|
inline |
Teonet* teo::Teonet::TeoDB::getTeonet |
( |
| ) |
const |
|
inline |
Get pointer to teonet class object.
- Returns
- Pointer to teonet class object
Referenced by getKe().
std::unique_ptr<teoDbData> teo::Teonet::TeoDB::prepareRequest |
( |
const void * |
key, |
|
|
size_t |
key_len, |
|
|
const void * |
data, |
|
|
size_t |
data_len, |
|
|
uint32_t |
id, |
|
|
size_t * |
tdd_len |
|
) |
| |
|
inline |
bool teo::Teonet::TeoDB::process |
( |
teoEvents |
event, |
|
|
void * |
data |
|
) |
| |
|
inline |
References checkPeer(), CMD_D_GET_ANSWER, CMD_D_LIST_ANSWER, CMD_D_LIST_LENGTH_ANSWER, CMD_D_LIST_RANGE_ANSWER, EV_K_RECEIVED, exec(), getData(), teo::Teonet::getPacket(), teo_db_data::id, and rd.
ksnet_arp_data* teo::Teonet::TeoDB::send |
( |
uint8_t |
cmd, |
|
|
const void * |
key, |
|
|
size_t |
key_len, |
|
|
const void * |
data = NULL , |
|
|
size_t |
data_len = 0 |
|
) |
| |
|
inline |
template<typename Callback >
ksnet_arp_data* teo::Teonet::TeoDB::send |
( |
uint8_t |
cmd, |
|
|
const void * |
key, |
|
|
size_t |
key_len, |
|
|
Callback |
cb, |
|
|
double |
timeout, |
|
|
uint8_t |
cb_type, |
|
|
teo::teoPacket * |
rd = NULL , |
|
|
teoDbData ** |
tdd = NULL , |
|
|
void * |
user_data = NULL |
|
) |
| |
|
inline |
ksnet_arp_data* teo::Teonet::TeoDB::send |
( |
uint8_t |
cmd, |
|
|
const void * |
key, |
|
|
size_t |
key_len, |
|
|
cqueCallback |
cb, |
|
|
double |
timeout, |
|
|
uint8_t |
cb_type, |
|
|
teo::teoPacket * |
rd = NULL , |
|
|
teoDbData ** |
tdd = NULL , |
|
|
void * |
user_data = NULL |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: