|
Teonet library
0.4.7
|
ksnReconnectClass definition More...
#include <net_recon.h>
Data Fields | |
| ksnReconnectClass * | this |
| Pointer to this class. More... | |
| void * | kco |
| Pointer to ksnCommandClass. More... | |
| PblMap * | map |
| Hash Map to store reconnect requests. More... | |
| int(* | send )(ksnReconnectClass *rec, const char *peer) |
| Send CMD_RECONNECT command to r-host. More... | |
| int(* | sendAnswer )(ksnReconnectClass *rec, const char *peer, const char *peer_to_reconnect) |
| Send CMD_RECONNECT_ANSWER command to r-host. More... | |
| int(* | process )(ksnReconnectClass *rec, ksnCorePacketData *rd) |
| Process CMD_RECONNECT command. More... | |
| int(* | processAnswer )(ksnReconnectClass *rec, ksnCorePacketData *rd) |
| Process CMD_RECONNECT_ANSWER command. More... | |
| ksnCQueCallback | callback |
| CallbackQueue callback. More... | |
| void(* | destroy )(ksnReconnectClass *rec) |
| Destroy ksnReconnectClass. More... | |
ksnReconnectClass definition
| ksnCQueCallback ksnReconnectClass::callback |
CallbackQueue callback.
| id | Calls ID |
| type | Type: 0 - timeout callback; 1 - successful callback |
| data | User data selected in ksnCQueAdd function |
| void(* ksnReconnectClass::destroy)(ksnReconnectClass *rec) |
Destroy ksnReconnectClass.
| this | Pointer to ksnReconnectClass |
| void* ksnReconnectClass::kco |
Pointer to ksnCommandClass.
| PblMap* ksnReconnectClass::map |
Hash Map to store reconnect requests.
| int(* ksnReconnectClass::process)(ksnReconnectClass *rec, ksnCorePacketData *rd) |
Process CMD_RECONNECT command.
Got by r-host from peer wanted reconnect with peer rd->data
| this | Pointer to ksnReconnectClass |
| rd | Pointer to ksnCorePacketData |
| int(* ksnReconnectClass::processAnswer)(ksnReconnectClass *rec, ksnCorePacketData *rd) |
Process CMD_RECONNECT_ANSWER command.
Got from r-host if peer to reconnect has not connected to r-host
| this | Pointer to ksnReconnectClass |
| rd | Pointer to ksnCorePacketData |
| int(* ksnReconnectClass::send)(ksnReconnectClass *rec, const char *peer) |
Send CMD_RECONNECT command to r-host.
| this | Pointer to ksnReconnectClass |
| peer | Peer name to reconnect |
| 0 | Send command successfully |
| -1 | Has not connected to r-host |
| int(* ksnReconnectClass::sendAnswer)(ksnReconnectClass *rec, const char *peer, const char *peer_to_reconnect) |
Send CMD_RECONNECT_ANSWER command to r-host.
| this | Pointer to ksnReconnectClass |
| peer | Peer name to send |
| peer_to_reconnect | Peer name to reconnect |
| 0 | Send command successfully |
| -1 | Has not connected to peer |
| -2 | This class has not initialized yet |
| ksnReconnectClass* ksnReconnectClass::this |
Pointer to this class.