📄 inet_msg_pack.h
字号:
* FUNCTION
* inet_msg_pack_cache_control
* DESCRIPTION
* This function packs the cache-control header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_cache_control(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_param_list
* DESCRIPTION
* This function packs the inet_param_list_struct header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_param_list(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_header_name_list
* DESCRIPTION
* This function packs the inet_str_list_struct header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_header_name_list(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_if_range
* DESCRIPTION
* This function packs the IF-Range header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_if_range(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_integer
* DESCRIPTION
* This function packs the int header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_integer(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_retry_after
* DESCRIPTION
* This function packs the retry-after header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_retry_after(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_string_list
* DESCRIPTION
* This function packs the inet_str_list_struct header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_string_list(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_string
* DESCRIPTION
* This function packs the string header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_string(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_str_param_list
* DESCRIPTION
* This function packs the inet_str_param_list_struct header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_str_param_list(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_req_resp_line_required_size
* DESCRIPTION
* This function calculate the required memory size to request or response line.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_req_status_line_required_size(
kal_uint8 app_type,
inet_message_struct *inet,
kal_int32 *size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_req_status_line
* DESCRIPTION
* This function packs the request or response line.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_req_status_line(
kal_uint8 app_type,
inet_message_struct *inet,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_header_required_size
* DESCRIPTION
* This function calculate the required memory size to one header.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_header_required_size(
kal_uint8 app_type,
inet_mem_func_struct *mem_func,
inet_header_struct *header,
kal_int32 *header_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_header_list_required_size
* DESCRIPTION
* This function calculate the required memory size to headers.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_header_list_required_size(
kal_uint8 app_type,
inet_mem_func_struct *mem_func,
inet_header_list_struct *header_list,
kal_int32 *header_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_header
* DESCRIPTION
* This function calculate the required memory size to headers.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_header(
kal_uint8 app_type,
kal_uint16 pack_mode,
inet_header_list_struct *header_list,
kal_char *buf,
kal_int32 buf_len,
kal_wchar *filepath,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_body_required_size
* DESCRIPTION
* This function calculate the required memory size to pack body.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_body_required_size(
kal_uint8 app_type,
inet_message_struct *inet,
kal_int32 *body_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_body
* DESCRIPTION
* This function calculate the required memory size to pack body.
*
* PARAMETERS
* app_type, IN, application type
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_body(
inet_message_struct *inet,
kal_uint8 app_type,
kal_uint16 pack_mode,
kal_char *buf,
kal_int32 buf_len,
kal_wchar *filepath,
kal_int32 *r_size);
extern inet_result_enum inet_msg_pack_quote_string_list(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
/*****************************************************************************
* FUNCTION
* inet_msg_pack_cookie
* DESCRIPTION
* This function packs the cache-control header value.
*
* PARAMETERS
* app_type, IN, application type
* arg, IN, pointer of header value
* buf, IN, buffer to store packed header value
* buf_len, IN, available data size of buffer
* r_size, IN/OUT, real data size to pack
*
* RETURNS
* INET result code
* GLOBALS AFFECTED
* none
*****************************************************************************/
extern inet_result_enum inet_msg_pack_cookie(
kal_uint8 app_type,
void *arg,
kal_char *buf,
kal_int32 buf_len,
kal_int32 *r_size);
#endif /* _INET_MSG_PACK_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -