天佐.追日靴
tianzuo.Zhuiri
可靠UDP传输 reliable UDP transmission
|
#include "tianzuo.Zhuiri.h"
Go to the source code of this file.
Classes | |
struct | Zhuiri_param_tag |
参数 More... | |
struct | Zhuiri_send_param_tag |
发送参数 More... | |
class | tianzuo_ZhuiriInt |
追日靴模块类 for c++ More... | |
class | tianzuo_ZhuiriInterface |
追日靴接口类 for c++ More... | |
class | tianzuo_DataQueue |
追日靴数据队列模块类 for c++ More... | |
class | tianzuo_DataQueueInterface |
追日靴数据队列接口 for c++ More... | |
Macros | |
#define | tianzuo_Zhuiri_atr __attribute__((visibility("default"))) |
导出函数定义(define dllexport) | |
#define | tianzuo_Zhuiri_lib |
Typedefs | |
typedef struct Zhuiri_param_tag | Zhuiri_param_struct |
typedef struct Zhuiri_param_tag * | Zhuiri_param_pointer |
typedef struct Zhuiri_send_param_tag | Zhuiri_send_param_struct |
typedef struct Zhuiri_send_param_tag * | Zhuiri_send_param_pointer |
Functions | ||||||||||
initialize | ||||||||||
队列初始化
| ||||||||||
tianzuo_Zhuiri_lib tianzuo_ZhuiriInt * | tianzuo_ZhuiriInterface_initialize () | |||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_initialize (tianzuo_ZhuiriInt *ZhuiriInt_pointer, const char *ip_addr, int port, const void *callback, const void *context, int const heart_check_time, bool log_trace) | |||||||||
tianzuo_Zhuiri_lib tianzuo_DataQueue * | tianzuo_DataQueueInterface_initialize () | |||||||||
tianzuo_Zhuiri_lib int | tianzuo_DataQueueInt_initialize (int init_size) | |||||||||
terminate | ||||||||||
接口销毁
| ||||||||||
tianzuo_Zhuiri_lib void | tianzuo_ZhuiriInterface_terminate (tianzuo_ZhuiriInt **ZhuiriInt_pointer) | |||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_terminate (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
tianzuo_Zhuiri_lib void | tianzuo_DataQueueInterface_terminate (tianzuo_DataQueue **DataQueue_pointer) | |||||||||
set_param | ||||||||||
预设参数
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_set_param (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int sender_index, int init_server_port, int msg_init_size, int recv_ex_data_max, int retry_max, int retry_all_number, int init_retry_time) | |||||||||
add_sender | ||||||||||
添加发送者
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_add_sender (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int *sender_index, int const sign) | |||||||||
begin_recv | ||||||||||
开始接收数据
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_begin_recv (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
stop_recv | ||||||||||
停止接收数据
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_stop_recv (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
data_free | ||||||||||
释放数据
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_data_free (tianzuo_ZhuiriInt *ZhuiriInt_pointer, void *Zhuiri, int const data_index) | |||||||||
send | ||||||||||
发送数据
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_send (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int sender_index, int ip, int port, int sign, int function, char *send_data, int send_size) | |||||||||
get_status | ||||||||||
获取状态
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_get_status (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
get_type | ||||||||||
获取类型
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_get_type (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
get_bind_port | ||||||||||
获取绑定端口
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_get_bind_port (tianzuo_ZhuiriInt *ZhuiriInt_pointer) | |||||||||
heart_add | ||||||||||
新建心跳包检测
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_heart_add (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int user_id, int ip_adrs, int port, int user_type, int send_time, int sender_user_id, int sender_user_type) | |||||||||
heart_modify | ||||||||||
修改心跳包检测
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_heart_modify (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int const data_id, int const ip, int const port) | |||||||||
heart_update | ||||||||||
更新心跳包检测
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_heart_update (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int const data_id) | |||||||||
heart_remove | ||||||||||
删除心跳包检测
| ||||||||||
tianzuo_Zhuiri_lib int | tianzuo_ZhuiriInt_heart_remove (tianzuo_ZhuiriInt *ZhuiriInt_pointer, int const data_id) | |||||||||
#define tianzuo_Zhuiri_atr __attribute__((visibility("default"))) |
导出函数定义(define dllexport)
#define tianzuo_Zhuiri_lib |
typedef struct Zhuiri_param_tag * Zhuiri_param_pointer |
typedef struct Zhuiri_param_tag Zhuiri_param_struct |
typedef struct Zhuiri_send_param_tag * Zhuiri_send_param_pointer |
typedef struct Zhuiri_send_param_tag Zhuiri_send_param_struct |
tianzuo_Zhuiri_lib int tianzuo_DataQueueInt_initialize | ( | int | init_size | ) |
tianzuo_Zhuiri_lib tianzuo_DataQueue * tianzuo_DataQueueInterface_initialize | ( | ) |
tianzuo_Zhuiri_lib void tianzuo_DataQueueInterface_terminate | ( | tianzuo_DataQueue ** | DataQueue_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_add_sender | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int * | sender_index, | ||
int const | sign | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_begin_recv | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_data_free | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
void * | Zhuiri, | ||
int const | data_index | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_get_bind_port | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_get_status | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_get_type | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_add | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int | user_id, | ||
int | ip_adrs, | ||
int | port, | ||
int | user_type, | ||
int | send_time, | ||
int | sender_user_id, | ||
int | sender_user_type | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_modify | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int const | data_id, | ||
int const | ip, | ||
int const | port | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_remove | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int const | data_id | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_update | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int const | data_id | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_initialize | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
const char * | ip_addr, | ||
int | port, | ||
const void * | callback, | ||
const void * | context, | ||
int const | heart_check_time, | ||
bool | log_trace | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_send | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int | sender_index, | ||
int | ip, | ||
int | port, | ||
int | sign, | ||
int | function, | ||
char * | send_data, | ||
int | send_size | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_set_param | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer, |
int | sender_index, | ||
int | init_server_port, | ||
int | msg_init_size, | ||
int | recv_ex_data_max, | ||
int | retry_max, | ||
int | retry_all_number, | ||
int | init_retry_time | ||
) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_stop_recv | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_terminate | ( | tianzuo_ZhuiriInt * | ZhuiriInt_pointer | ) |
tianzuo_Zhuiri_lib tianzuo_ZhuiriInt * tianzuo_ZhuiriInterface_initialize | ( | ) |
tianzuo_Zhuiri_lib void tianzuo_ZhuiriInterface_terminate | ( | tianzuo_ZhuiriInt ** | ZhuiriInt_pointer | ) |