Teonet library
0.4.7
|
#include <stdlib.h>
#include <string.h>
#include "ev_mgr.h"
#include "net_recon.h"
#include "utils/rlutil.h"
#include "utils/teo_memory.h"
Macros | |
#define | MODULE _ANSI_GREEN "net_reconnect" _ANSI_NONE |
#define | kev ((ksnetEvMgrClass*)kcor->ke) |
#define | kcor |
#define | karp kcor->ka |
#define | kcor ((ksnCoreClass*)(((ksnCommandClass*)this->kco)->kc)) |
#define | kcom ((ksnCommandClass*)this->kco) |
#define | karp ((ksnCoreClass*)kcom->kc)->ka |
#define | kev_ |
Typedefs | |
typedef struct reconnect_map_data | reconnect_map_data |
Reconnect command map data structure. More... | |
Functions | |
int | send_cmd_connected_cb (ksnetArpClass *ka, char *name, ksnet_arp_data *arp_data, void *data) |
Send command connected to peer. More... | |
ksnReconnectClass * | ksnReconnectInit (void *kco) |
Initialize ksnReconnectClass. More... | |
Teonet reconnect module.
Reconnect to disconnected peer
CMD_RECONNECT
When disconnect from peer (not r-host peer):
Created on November 5, 2015, 11:19 AM
#define karp kcor->ka |
#define karp ((ksnCoreClass*)kcom->kc)->ka |
#define kcom ((ksnCommandClass*)this->kco) |
#define kcor |
#define kcor ((ksnCoreClass*)(((ksnCommandClass*)this->kco)->kc)) |
#define kev ((ksnetEvMgrClass*)kcor->ke) |
#define kev_ |
Referenced by ksnReconnectInit().
#define MODULE _ANSI_GREEN "net_reconnect" _ANSI_NONE |
Referenced by ksnReconnectInit().
typedef struct reconnect_map_data reconnect_map_data |
Reconnect command map data structure.
ksnReconnectClass* ksnReconnectInit | ( | void * | kco | ) |
Initialize ksnReconnectClass.
kco | Pointer to ksnCommandClass |
References DEBUG_VV, kev_, ksn_puts, MODULE, and teo_malloc().
Referenced by ksnCommandInit().
int send_cmd_connected_cb | ( | ksnetArpClass * | ka, |
char * | child_peer, | ||
ksnet_arp_data * | arp_data, | ||
void * | data | ||
) |
Send command connected to peer.
ka | Pointer to ksnetArpClass |
child_peer | Child peer name |
arp_data | Child arp data |
data | Pointer to ksnCoreRecvData (included new peer name) |
References ksnetArpClass::ke, ksnCommandSendCmdConnect(), new_peer, and rd.