天佐.追日靴  tianzuo.Zhuiri
可靠UDP传输 reliable UDP transmission
Loading...
Searching...
No Matches
tianzuo_ZhuiriInt Class Referenceabstract

追日靴模块类 for c++ More...

#include <tianzuo.ZhuiriInterface.h>

Public Member Functions

 tianzuo_ZhuiriInt ()
 
virtual ~tianzuo_ZhuiriInt ()
 
initialize

组件初始化

Parameters
[in]ip_addr绑定IP地址
[in]port绑定端口号
[in]callback回调指针
[in]context回调上下文
[in]heart_check_time心跳包检测时间间隔
[in]log_trace是否有运行调试信息
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int initialize (const char *ip_addr, int port, const void *callback, const void *context, int const heart_check_time, bool log_trace)=0
 
terminate

组件销毁

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int terminate ()=0
 
set_param

预设参数

Parameters
[in]param参数指针
Returns
Author
郑天佐
Date
2013-6-26
virtual int set_param (Zhuiri_param_pointer param)=0
 
add_sender

添加发送者

Parameters
[in]sender_index发送序号
[in]sign发送标识
Returns
Author
郑天佐
Date
2013-6-26
virtual int add_sender (int *sender_index, int const sign)=0
 
begin_recv

开始接收数据

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int begin_recv ()=0
 
stop_recv

停止接收数据

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int stop_recv ()=0
 
data_free

释放数据

Parameters
[in]Zhuiri类指针
[in]data_index数据序号
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int data_free (void *Zhuiri, int const data_index) const =0
 
send

发送数据

Parameters
[in]send_param发送参数
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int send (Zhuiri_send_param_pointer send_param)=0
 
get_status

获取状态

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int get_status () const =0
 
get_type

获取类型

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int get_type ()=0
 
get_bind_port

获取绑定端口

Parameters
[in]
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int get_bind_port ()=0
 
heart_add

新建心跳包检测

Parameters
[in]recv_heart接收心跳参数
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int heart_add (Zhuiri_pkg_recv_heart_pointer recv_heart)=0
 
heart_modify

修改心跳包检测

Parameters
[in]data_id数据ID
[in]ipIP地址
[in]port端口
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int heart_modify (int const data_id, int const ip, int const port)=0
 
heart_update

更新心跳包检测

Parameters
[in]data_id数据ID
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int heart_update (int const data_id)=0
 
heart_remove

删除心跳包检测

Parameters
[in]data_id数据ID
Returns
int
Author
郑天佐
Date
2013-4-3
virtual int heart_remove (int const data_id)=0
 

Detailed Description

追日靴模块类 for c++

Constructor & Destructor Documentation

◆ tianzuo_ZhuiriInt()

tianzuo_ZhuiriInt::tianzuo_ZhuiriInt ( )
inline

◆ ~tianzuo_ZhuiriInt()

virtual tianzuo_ZhuiriInt::~tianzuo_ZhuiriInt ( )
inlinevirtual

Member Function Documentation

◆ add_sender()

virtual int tianzuo_ZhuiriInt::add_sender ( int *  sender_index,
int const  sign 
)
pure virtual

◆ begin_recv()

virtual int tianzuo_ZhuiriInt::begin_recv ( )
pure virtual

◆ data_free()

virtual int tianzuo_ZhuiriInt::data_free ( void *  Zhuiri,
int const  data_index 
) const
pure virtual

◆ get_bind_port()

virtual int tianzuo_ZhuiriInt::get_bind_port ( )
pure virtual

◆ get_status()

virtual int tianzuo_ZhuiriInt::get_status ( ) const
pure virtual

◆ get_type()

virtual int tianzuo_ZhuiriInt::get_type ( )
pure virtual

◆ heart_add()

virtual int tianzuo_ZhuiriInt::heart_add ( Zhuiri_pkg_recv_heart_pointer  recv_heart)
pure virtual

◆ heart_modify()

virtual int tianzuo_ZhuiriInt::heart_modify ( int const  data_id,
int const  ip,
int const  port 
)
pure virtual

◆ heart_remove()

virtual int tianzuo_ZhuiriInt::heart_remove ( int const  data_id)
pure virtual

◆ heart_update()

virtual int tianzuo_ZhuiriInt::heart_update ( int const  data_id)
pure virtual

◆ initialize()

virtual int tianzuo_ZhuiriInt::initialize ( const char *  ip_addr,
int  port,
const void *  callback,
const void *  context,
int const  heart_check_time,
bool  log_trace 
)
pure virtual

◆ send()

virtual int tianzuo_ZhuiriInt::send ( Zhuiri_send_param_pointer  send_param)
pure virtual

◆ set_param()

virtual int tianzuo_ZhuiriInt::set_param ( Zhuiri_param_pointer  param)
pure virtual

◆ stop_recv()

virtual int tianzuo_ZhuiriInt::stop_recv ( )
pure virtual

◆ terminate()

virtual int tianzuo_ZhuiriInt::terminate ( )
pure virtual

The documentation for this class was generated from the following file: