天佐.追日靴  tianzuo.Zhuiri
可靠UDP传输 reliable UDP transmission
Loading...
Searching...
No Matches
tianzuo.Zhuiri.h File Reference
#include <string.h>
Include dependency graph for tianzuo.Zhuiri.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Zhuiri_data_tag
 数据包结构 More...
 
struct  Zhuiri_data_pkg_tag
 数据包结构 More...
 
struct  Zhuiri_pkg_send_heart_tag
 心跳包发送结构 More...
 
struct  Zhuiri_pkg_recv_heart_tag
 心跳包接收结构 More...
 

Typedefs

typedef struct Zhuiri_data_tag Zhuiri_data_struct
 
typedef struct Zhuiri_data_tagZhuiri_data_pointer
 
typedef struct Zhuiri_data_pkg_tag Zhuiri_data_pkg_struct
 
typedef struct Zhuiri_data_pkg_tagZhuiri_data_pkg_pointer
 
typedef struct Zhuiri_pkg_send_heart_tag Zhuiri_pkg_send_heart_struct
 
typedef struct Zhuiri_pkg_send_heart_tagZhuiri_pkg_send_heart_pointer
 
typedef struct Zhuiri_pkg_recv_heart_tag Zhuiri_pkg_recv_heart_struct
 
typedef struct Zhuiri_pkg_recv_heart_tagZhuiri_pkg_recv_heart_pointer
 
typedef unsigned(* Zhuiri_callback) (const void *context, const Zhuiri_data_pkg_pointer pData)
 

Enumerations

enum  Zhuiri_data_sign {
  Zhuiri_data_sign_none = 0x00000000 , Zhuiri_data_sign_reliable = 0x00000001 , Zhuiri_data_sign_processing = 0x00000002 , Zhuiri_data_sign_response = 0x00000003 ,
  Zhuiri_data_sign_heart = 0x00000004
}
 
enum  Zhuiri_data_status { Zhuiri_data_status_none = 0x00000000 , Zhuiri_data_status_normal = 0x00000001 , Zhuiri_data_status_retrying = 0x00000002 , Zhuiri_data_status_failed = 0x00000003 }
 
enum  Zhuiri_error_code {
  Zhuiri_error_code_success = 0x00000001 , Zhuiri_error_code_no_rights = 0x00000002 , Zhuiri_error_code_socket = 0x0000000D , Zhuiri_error_code_thread_error = 0x00000021 ,
  Zhuiri_error_code_handle = 0x00000022 , Zhuiri_error_code_out_of_cache = 0x00000023 , Zhuiri_error_code_out_of_memory = 0x00000024 , Zhuiri_error_code_time_out = 0x00000025 ,
  Zhuiri_error_code_user_reject = 0x00000098 , Zhuiri_error_code_user_exit = 0x00000099
}
 
enum  Zhuiri_queue_error_code {
  Zhuiri_queue_error_code_success = 0x00000001 , Zhuiri_queue_error_code_invalid_value = 0x00000002 , Zhuiri_queue_error_code_out_of_cache = 0x00000003 , Zhuiri_queue_error_code_out_of_memory = 0x00000004 ,
  Zhuiri_queue_error_code_no_data = 0x00000005
}
 

Variables

const int Zhuiri_heart = 0x00001000
 心跳包信息 (Heartbeat packet information)
 
const int Zhuiri_heart_timeout = 0x00001001
 心跳包超时信息 (Heartbeat packet timeout information)
 
const int Zhuiri_content_size = 492
 内容大小 (content size)
 
const int Zhuiri_data_total_size = sizeof(Zhuiri_data_struct)
 消息内容长度 (message content length) = 520
 
const int Zhuiri_data_pkg_total_size = sizeof(Zhuiri_data_pkg_struct)
 消息内容长度 (message content length) = 544
 

Typedef Documentation

◆ Zhuiri_callback

typedef unsigned(* Zhuiri_callback) (const void *context, const Zhuiri_data_pkg_pointer pData)

◆ Zhuiri_data_pkg_pointer

◆ Zhuiri_data_pkg_struct

◆ Zhuiri_data_pointer

◆ Zhuiri_data_struct

◆ Zhuiri_pkg_recv_heart_pointer

◆ Zhuiri_pkg_recv_heart_struct

◆ Zhuiri_pkg_send_heart_pointer

◆ Zhuiri_pkg_send_heart_struct

Enumeration Type Documentation

◆ Zhuiri_data_sign

Enumerator
Zhuiri_data_sign_none 

无标识 (no sign)

Zhuiri_data_sign_reliable 

可靠 (reliable)

Zhuiri_data_sign_processing 

处理中 (processing)

Zhuiri_data_sign_response 

回应消息 (response)

Zhuiri_data_sign_heart 

心跳包 (heart)

◆ Zhuiri_data_status

Enumerator
Zhuiri_data_status_none 

空闲 (free)

Zhuiri_data_status_normal 

正常 (normal)

Zhuiri_data_status_retrying 

重发中 (retrying)

Zhuiri_data_status_failed 

失败 (failed)

◆ Zhuiri_error_code

Enumerator
Zhuiri_error_code_success 

正确的值 (success)

Zhuiri_error_code_no_rights 

效验未通过 (no rights)

Zhuiri_error_code_socket 

套接字错误 (socket error)

Zhuiri_error_code_thread_error 

线程失败 (thread error)

Zhuiri_error_code_handle 

创建句柄失败 (handle error)

Zhuiri_error_code_out_of_cache 

超出缓冲最大值 (out f cache)

Zhuiri_error_code_out_of_memory 

内存溢出 (out of memory)

Zhuiri_error_code_time_out 

操作超时 (time out)

Zhuiri_error_code_user_reject 

对方决绝 (user reject)

Zhuiri_error_code_user_exit 

自行退出 (user exit)

◆ Zhuiri_queue_error_code

Enumerator
Zhuiri_queue_error_code_success 

正确的值 (success)

Zhuiri_queue_error_code_invalid_value 

无效的值 (invalid value)

Zhuiri_queue_error_code_out_of_cache 

超出缓冲 (out f cache)

Zhuiri_queue_error_code_out_of_memory 

内存溢出 (out of memory)

Zhuiri_queue_error_code_no_data 

无数据 (no data)

Variable Documentation

◆ Zhuiri_content_size

const int Zhuiri_content_size = 492

内容大小 (content size)

◆ Zhuiri_data_pkg_total_size

const int Zhuiri_data_pkg_total_size = sizeof(Zhuiri_data_pkg_struct)

消息内容长度 (message content length) = 544

◆ Zhuiri_data_total_size

const int Zhuiri_data_total_size = sizeof(Zhuiri_data_struct)

消息内容长度 (message content length) = 520

◆ Zhuiri_heart

const int Zhuiri_heart = 0x00001000

心跳包信息 (Heartbeat packet information)

◆ Zhuiri_heart_timeout

const int Zhuiri_heart_timeout = 0x00001001

心跳包超时信息 (Heartbeat packet timeout information)