12#undef tianzuo_Zhuiri_lib
14#define tianzuo_Zhuiri_atr
15#if defined (tianzuo_Zhuiri_dllexport)
16#define tianzuo_Zhuiri_lib _declspec(dllexport)
18#define tianzuo_Zhuiri_lib _declspec(dllimport)
21#define tianzuo_Zhuiri_atr __attribute__((visibility("default")))
22#define tianzuo_Zhuiri_lib
30 m_init_server_port = 0;
32 m_recv_ex_data_max = 0;
34 m_retry_all_number = 0;
35 m_init_retry_time = 0;
45 int init_retry_time) {
46 m_sender_index = sender_index;
47 m_init_server_port = init_server_port;
48 m_msg_init_size = msg_init_size;
49 m_recv_ex_data_max = recv_ex_data_max;
50 m_retry_max = retry_max;
51 m_retry_all_number = retry_all_number;
52 m_init_retry_time = init_retry_time;
56 return m_sender_index;
60 m_sender_index = sender_index;
64 return m_init_server_port;
68 m_init_server_port = init_server_port;
72 return m_msg_init_size;
76 m_msg_init_size = msg_init_size;
80 return m_recv_ex_data_max;
84 m_recv_ex_data_max = recv_ex_data_max;
92 m_retry_max = retry_max;
96 return m_retry_all_number;
100 m_retry_all_number = retry_all_number;
104 return m_init_retry_time;
108 m_init_retry_time = init_retry_time;
113 int m_init_server_port;
115 int m_recv_ex_data_max;
117 int m_retry_all_number;
118 int m_init_retry_time;
135 int function,
char *send_data,
int send_size) {
136 m_sender_index = sender_index;
140 m_function = function;
141 m_send_data = send_data;
142 m_send_size = send_size;
146 return m_sender_index;
150 m_sender_index = sender_index;
182 m_function = function;
190 m_send_data = send_data;
198 m_send_size = send_size;
232 const char *ip_addr,
int port,
233 const void *callback,
const void *context,
int const heart_check_time,
236 ,
void * iocp =
nullptr
270 int *sender_index,
int const sign) = 0;
302 void *Zhuiri,
int const data_index)
const = 0;
365 int const data_id,
int const ip,
int const port) = 0;
625 const void* callback,
const void* context,
int const heart_check_time,
bool log_trace
627 ,
void* iocp =
nullptr
650 int sender_index,
int init_server_port,
int msg_init_size,
651 int recv_ex_data_max,
int retry_max,
int retry_all_number,
652 int init_retry_time);
664 int *sender_index,
int const sign);
706 int sender_index,
int ip,
int port,
int sign,
int function,
char* send_data,
int send_size);
759 int const data_id,
int const ip,
int const port);
追日靴数据队列模块类 for c++
Definition tianzuo.ZhuiriInterface.h:435
virtual int get_all_count() const =0
virtual ~tianzuo_DataQueue()
Definition tianzuo.ZhuiriInterface.h:438
tianzuo_DataQueue()
Definition tianzuo.ZhuiriInterface.h:437
virtual int get_used_count() const =0
virtual int get_unuse_count() const =0
virtual int pop_up(const Zhuiri_data_pkg_pointer data)=0
virtual void free_send_data()=0
virtual int initialize(int const init_size)=0
virtual int push_back(const Zhuiri_data_pkg_pointer data)=0
virtual void alloc_send_data(Zhuiri_data_pkg_pointer *data, int const space_size)=0
virtual void terminate()=0
追日靴数据队列接口 for c++
Definition tianzuo.ZhuiriInterface.h:545
static tianzuo_DataQueue * initialize()
static void terminate(tianzuo_DataQueue **data_queue)
tianzuo_DataQueueInterface()
virtual ~tianzuo_DataQueueInterface()
追日靴模块类 for c++
Definition tianzuo.ZhuiriInterface.h:213
virtual int heart_modify(int const data_id, int const ip, int const port)=0
virtual ~tianzuo_ZhuiriInt()
Definition tianzuo.ZhuiriInterface.h:216
virtual int heart_update(int const data_id)=0
virtual int get_bind_port()=0
virtual int initialize(const char *ip_addr, int port, const void *callback, const void *context, int const heart_check_time, bool log_trace)=0
virtual int begin_recv()=0
virtual int data_free(void *Zhuiri, int const data_index) const =0
virtual int send(Zhuiri_send_param_pointer send_param)=0
virtual int stop_recv()=0
virtual int set_param(Zhuiri_param_pointer param)=0
virtual int heart_add(Zhuiri_pkg_recv_heart_pointer recv_heart)=0
virtual int add_sender(int *sender_index, int const sign)=0
tianzuo_ZhuiriInt()
Definition tianzuo.ZhuiriInterface.h:215
virtual int heart_remove(int const data_id)=0
virtual int terminate()=0
virtual int get_status() const =0
追日靴接口类 for c++
Definition tianzuo.ZhuiriInterface.h:390
virtual ~tianzuo_ZhuiriInterface()
static tianzuo_ZhuiriInt * initialize()
tianzuo_ZhuiriInterface()
static void terminate(tianzuo_ZhuiriInt **Zhuiri)
数据包结构
Definition tianzuo.Zhuiri.h:116
参数
Definition tianzuo.ZhuiriInterface.h:27
int get_retry_max() const
Definition tianzuo.ZhuiriInterface.h:87
int get_sender_index() const
Definition tianzuo.ZhuiriInterface.h:55
void set_init_retry_time(int init_retry_time)
Definition tianzuo.ZhuiriInterface.h:107
int get_retry_all_number() const
Definition tianzuo.ZhuiriInterface.h:95
int get_recv_ex_data_max() const
Definition tianzuo.ZhuiriInterface.h:79
Zhuiri_param_tag()
Definition tianzuo.ZhuiriInterface.h:28
void set_retry_max(int retry_max)
Definition tianzuo.ZhuiriInterface.h:91
void set_recv_ex_data_max(int recv_ex_data_max)
Definition tianzuo.ZhuiriInterface.h:83
Zhuiri_param_tag(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)
Definition tianzuo.ZhuiriInterface.h:38
void set_msg_init_size(int msg_init_size)
Definition tianzuo.ZhuiriInterface.h:75
int get_init_retry_time() const
Definition tianzuo.ZhuiriInterface.h:103
int get_msg_init_size() const
Definition tianzuo.ZhuiriInterface.h:71
void set_init_server_port(int init_server_port)
Definition tianzuo.ZhuiriInterface.h:67
void set_sender_index(int sender_index)
Definition tianzuo.ZhuiriInterface.h:59
void set_retry_all_number(int retry_all_number)
Definition tianzuo.ZhuiriInterface.h:99
int get_init_server_port() const
Definition tianzuo.ZhuiriInterface.h:63
心跳包接收结构
Definition tianzuo.Zhuiri.h:189
发送参数
Definition tianzuo.ZhuiriInterface.h:123
void set_sender_index(int sender_index)
Definition tianzuo.ZhuiriInterface.h:149
int get_send_size() const
Definition tianzuo.ZhuiriInterface.h:193
int get_port() const
Definition tianzuo.ZhuiriInterface.h:161
void set_sign(int sign)
Definition tianzuo.ZhuiriInterface.h:173
void set_ip(int ip)
Definition tianzuo.ZhuiriInterface.h:157
void set_port(int port)
Definition tianzuo.ZhuiriInterface.h:165
void set_send_data(char *send_data)
Definition tianzuo.ZhuiriInterface.h:189
void set_function(int function)
Definition tianzuo.ZhuiriInterface.h:181
int get_sign() const
Definition tianzuo.ZhuiriInterface.h:169
Zhuiri_send_param_tag(int sender_index, int ip, int port, int sign, int function, char *send_data, int send_size)
Definition tianzuo.ZhuiriInterface.h:134
int get_sender_index() const
Definition tianzuo.ZhuiriInterface.h:145
char * get_send_data() const
Definition tianzuo.ZhuiriInterface.h:185
int get_ip() const
Definition tianzuo.ZhuiriInterface.h:153
Zhuiri_send_param_tag()
Definition tianzuo.ZhuiriInterface.h:124
void set_send_size(int send_size)
Definition tianzuo.ZhuiriInterface.h:197
int get_function() const
Definition tianzuo.ZhuiriInterface.h:177
#define tianzuo_Zhuiri_lib
Definition tianzuo.ZhuiriInterface.h:22
tianzuo_Zhuiri_lib void tianzuo_ZhuiriInterface_terminate(tianzuo_ZhuiriInt **ZhuiriInt_pointer)
tianzuo_Zhuiri_lib tianzuo_ZhuiriInt * tianzuo_ZhuiriInterface_initialize()
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_get_bind_port(tianzuo_ZhuiriInt *ZhuiriInt_pointer)
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_add_sender(tianzuo_ZhuiriInt *ZhuiriInt_pointer, int *sender_index, int const sign)
tianzuo_Zhuiri_lib int tianzuo_DataQueueInt_initialize(int init_size)
tianzuo_Zhuiri_lib void tianzuo_DataQueueInterface_terminate(tianzuo_DataQueue **DataQueue_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_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_terminate(tianzuo_ZhuiriInt *ZhuiriInt_pointer)
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_remove(tianzuo_ZhuiriInt *ZhuiriInt_pointer, int const data_id)
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 tianzuo_DataQueue * tianzuo_DataQueueInterface_initialize()
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)
struct Zhuiri_send_param_tag * Zhuiri_send_param_pointer
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_get_status(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)
struct Zhuiri_param_tag Zhuiri_param_struct
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_heart_update(tianzuo_ZhuiriInt *ZhuiriInt_pointer, int const data_id)
struct Zhuiri_param_tag * Zhuiri_param_pointer
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_get_type(tianzuo_ZhuiriInt *ZhuiriInt_pointer)
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_stop_recv(tianzuo_ZhuiriInt *ZhuiriInt_pointer)
tianzuo_Zhuiri_lib int tianzuo_ZhuiriInt_begin_recv(tianzuo_ZhuiriInt *ZhuiriInt_pointer)
struct Zhuiri_send_param_tag Zhuiri_send_param_struct