📄 inet_msg_res.c
字号:
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* 0 */
static inet_header_process_info_table_struct inet_msg_header_process_info_table[INET_HDR_NUM] =
{
{INET_HDR_ACCEPT, "Accept", inet_msg_pack_content_type_list, inet_msg_unpack_content_type_list, inet_content_type_list_struct_copy_fn, inet_content_type_list_struct_free_fn, inet_add_val_to_content_type_list_fn}, /* 00 */
{INET_HDR_ACCEPT_CHARSET, "Accept-Charset", inet_msg_pack_str_param_list, inet_msg_unpack_str_param_list,
inet_str_param_list_struct_copy_fn, inet_str_param_list_struct_free_fn, inet_add_val_to_str_param_list_fn},
{INET_HDR_ACCEPT_CONTACT, "Accept-Contact", inet_msg_pack_addr_list, inet_msg_unpack_addr_list,
inet_addr_list_struct_copy_fn, inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_ACCEPT_ENCODING, "Accept-Encoding", inet_msg_pack_str_param_list, inet_msg_unpack_str_param_list,
inet_str_param_list_struct_copy_fn, inet_str_param_list_struct_free_fn, inet_add_val_to_str_param_list_fn},
{INET_HDR_ACCEPT_LANGUAGE, "Accept-Language", inet_msg_pack_str_param_list, inet_msg_unpack_str_param_list,
inet_str_param_list_struct_copy_fn, inet_str_param_list_struct_free_fn, inet_add_val_to_str_param_list_fn},
{INET_HDR_ACCEPT_RANGES, "Accept-Ranges", inet_msg_pack_string_list, inet_msg_unpack_string_list, inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn}, /* 05 */
{INET_HDR_AGE, "Age", inet_msg_pack_integer, inet_msg_unpack_integer, inet_kal_uint32_struct_copy_fn,
inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_ALERT_INFO, "Alert-Info", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn,
NULL},
{INET_HDR_ALLOW, "Allow", inet_msg_pack_method_list, inet_msg_unpack_method_list, inet_int_str_list_struct_copy_fn,
inet_int_str_list_struct_free_fn, inet_add_val_to_int_str_list_fn},
{INET_HDR_AUTH_INFO, "Authentication-Info", inet_msg_pack_authentication_info, inet_msg_unpack_authentication_info,
inet_authentication_info_struct_copy_fn, inet_authentication_info_struct_free_fn, NULL},
{INET_HDR_AUTHORIZATION, "Authorization", inet_msg_pack_authorization, inet_msg_unpack_authorization, inet_authorization_struct_copy_fn, inet_authorization_struct_free_fn, NULL}, /* 10 */
{INET_HDR_CACHE_CONTROL, "Cache-Control", inet_msg_pack_cache_control, inet_msg_unpack_cache_control,
inet_int_str_list_struct_copy_fn, inet_int_str_list_struct_free_fn, inet_add_val_to_int_str_list_fn},
{INET_HDR_CALL_ID, "Call-ID", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_CONTACT, "Contact", inet_msg_pack_addr_list, inet_msg_unpack_addr_list, inet_addr_list_struct_copy_fn,
inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_CONNECTION, "Connection", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_CONTENT_DISPOSITION, "Content-Disposition", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL}, /* 15 */
{INET_HDR_CONTENT_ENCODING, "Content-Encoding", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_CONTENT_LANGUAGE, "Content-Language", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_CONTENT_LENGTH, "Content-Length", inet_msg_pack_integer, inet_msg_unpack_integer,
inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_CONTENT_TYPE, "Content-Type", inet_msg_pack_content_type, inet_msg_unpack_content_type,
inet_content_type_struct_copy_fn, inet_content_type_struct_free_fn, NULL},
{INET_HDR_CONTENT_ID, "Content-ID", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL}, /* 20 */
{INET_HDR_CONTENT_LOCATION, "Content-Location", inet_msg_pack_uri, inet_msg_unpack_uri, inet_uri_struct_copy_fn,
inet_uri_struct_free_fn, NULL},
{INET_HDR_CONTENT_MD5, "Conetnet-MD5", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_CONTENT_RANGE, "Content-Range", inet_msg_pack_content_range, inet_msg_unpack_content_range,
inet_content_range_struct_copy_fn, inet_content_range_struct_free_fn, NULL},
{INET_HDR_CONTENT_TRANSER_ENCODING, "Content-Transfer-Encoding", NULL, NULL, inet_int_str_struct_copy_fn,
inet_int_str_struct_free_fn, NULL},
{INET_HDR_COOKIE, "Cookie", inet_msg_pack_cookie, NULL, inet_cookie_list_struct_copy_fn, inet_cookie_list_struct_free_fn, inet_add_val_to_cookie_list_fn}, /* 25 */
{INET_HDR_CSEQ, "Cseq", inet_msg_pack_cseq, inet_msg_unpack_cseq, inet_cseq_struct_copy_fn,
inet_cseq_struct_free_fn, NULL},
{INET_HDR_DATE, "Date", inet_msg_pack_date_string, inet_msg_unpack_date_string, inet_kal_uint32_struct_copy_fn,
inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_ERROR_INFO, "Error-Info", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_EXPECT, "Expect", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_EXPIRES, "Expires", inet_msg_pack_integer, inet_msg_unpack_integer, inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL}, /* 30 */
{INET_HDR_ETAG, "ETag", inet_msg_pack_string_list, inet_msg_unpack_string_list, inet_str_list_struct_copy_fn,
inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_FROM, "From", inet_msg_pack_addr_list, inet_msg_unpack_addr_list, inet_addr_list_struct_copy_fn,
inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_HOST, "Host", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_IF_MATCH, "If-Match", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_IF_MODIFIED_SINCE, "If-Modified-Since", inet_msg_pack_date_string, inet_msg_unpack_date_string, inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL}, /* 35 */
{INET_HDR_IF_NONE_MATCH, "If-None-Match", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_IF_RANGE, "If-Range", inet_msg_pack_if_range, inet_msg_unpack_if_range, inet_int_str_struct_copy_fn,
inet_int_str_struct_free_fn, NULL},
{INET_HDR_IF_UNMODIFIED_SINCE, "If-Unmodified-Since", inet_msg_pack_date_string, inet_msg_unpack_date_string,
inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_IN_REPLY_TO, "In-Reply-To", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn,
NULL},
{INET_HDR_LAST_MODIFIED, "Last-Modified", inet_msg_pack_date_string, inet_msg_unpack_date_string, inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL}, /* 40 */
{INET_HDR_LOCATION, "Location", inet_msg_pack_uri, inet_msg_unpack_uri, inet_uri_struct_copy_fn,
inet_uri_struct_free_fn, NULL},
{INET_HDR_MAX_FORWARDS, "Max-Forwards", inet_msg_pack_integer, inet_msg_unpack_integer,
inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_METHOD, NULL, inet_msg_pack_integer, inet_msg_unpack_integer, inet_kal_uint32_struct_copy_fn,
inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_MIN_EXPIRES, "Min-Expires", inet_msg_pack_integer, inet_msg_unpack_integer,
inet_kal_uint32_struct_copy_fn, inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_MIME_VERSION, "Mime-Version", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL}, /* 45 */
{INET_HDR_ORGANIZATION, "Organization", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn,
NULL},
{INET_HDR_PRAGMA, "Pragma", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_PRIORITY, "Priority", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL},
{INET_HDR_PROXY_AUTHENTICATE, "Proxy-Authenticate", inet_msg_pack_authenticate, inet_msg_unpack_authenticate,
inet_authenticate_struct_copy_fn, inet_authenticate_struct_free_fn, NULL},
{INET_HDR_PROXY_AUTHORIZATION, "Proxy-Authorization", inet_msg_pack_authorization, inet_msg_unpack_authorization, inet_authorization_struct_copy_fn, inet_authorization_struct_free_fn, NULL}, /* 50 */
{INET_HDR_PROXY_REQUIRE, "Proxy-Require", NULL, NULL, inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn,
inet_add_val_to_str_list_fn},
{INET_HDR_RANGE, "Range", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_REASON_PHRASE, NULL, inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_RECORD_ROUTE, "Record-Route", inet_msg_pack_addr_list, inet_msg_unpack_addr_list,
inet_addr_list_struct_copy_fn, inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_REPLY_TO, "Reply-To", NULL, NULL, inet_addr_list_struct_copy_fn, inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn}, /* 55 */
{INET_HDR_REFER, "Refer", inet_msg_pack_uri, inet_msg_unpack_uri, inet_uri_struct_copy_fn, inet_uri_struct_free_fn,
NULL},
{INET_HDR_REFER_TO, "Refer-To", inet_msg_pack_addr_list, inet_msg_unpack_addr_list, inet_addr_list_struct_copy_fn,
inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_REQUIRE, "Require", inet_msg_pack_string_list, inet_msg_unpack_string_list, inet_str_list_struct_copy_fn,
inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_RESP_CODE, NULL, inet_msg_pack_integer, inet_msg_unpack_integer, inet_kal_uint32_struct_copy_fn,
inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_RETRY_AFTER, "Retry-After", inet_msg_pack_retry_after, inet_msg_unpack_retry_after, inet_retry_after_struct_copy_fn, inet_retry_after_struct_free_fn, NULL}, /* 60 */
{INET_HDR_ROUTE, "Route", inet_msg_pack_addr_list, inet_msg_unpack_addr_list, inet_addr_list_struct_copy_fn,
inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_SERVER, "Server", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_SET_COOKIE, "Set-Cookie", inet_msg_pack_cookie, inet_msg_unpack_set_cookie_v1,
inet_cookie_list_struct_copy_fn, inet_cookie_list_struct_free_fn, inet_add_val_to_cookie_list_fn},
{INET_HDR_SET_COOKIE2, "Set-Cookie2", inet_msg_pack_cookie, inet_msg_unpack_set_cookie_v2,
inet_cookie_list_struct_copy_fn, inet_cookie_list_struct_free_fn, inet_add_val_to_cookie_list_fn},
{INET_HDR_SESSION_EXPIRES, "Session-Expires", inet_msg_pack_session_expires, inet_msg_unpack_session_expires, inet_session_expires_struct_copy_fn, inet_session_expires_struct_free_fn, NULL}, /* 65 */
{INET_HDR_SUBJECT, "Subject", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_SUPPORTED, "Supported", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_TIMESTAMP, "Timestamp", NULL, NULL, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL},
{INET_HDR_TRAILER, "Trailer", inet_msg_pack_header_name_list, inet_msg_unpack_header_name_list,
inet_int_str_list_struct_copy_fn, inet_int_str_list_struct_free_fn, inet_add_val_to_int_str_list_fn},
{INET_HDR_TRANSFER_ENCODING, "Transfer-Encoding", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL}, /* 70 */
{INET_HDR_TE, "TE", inet_msg_pack_str_param_list, inet_msg_unpack_str_param_list,
inet_str_param_list_struct_copy_fn, inet_str_param_list_struct_free_fn, inet_add_val_to_str_param_list_fn},
{INET_HDR_TO, "To", inet_msg_pack_addr_list, inet_msg_unpack_addr_list, inet_addr_list_struct_copy_fn,
inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_UNSUPPORTED, "Unsupported", inet_msg_pack_string_list, inet_msg_unpack_string_list,
inet_str_list_struct_copy_fn, inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_UPGRADE, "Upgrade", inet_msg_pack_string_list, inet_msg_unpack_string_list, inet_str_list_struct_copy_fn,
inet_str_list_struct_free_fn, inet_add_val_to_str_list_fn},
{INET_HDR_URI, "Uri", inet_msg_pack_uri, inet_msg_unpack_uri, inet_uri_struct_copy_fn, inet_uri_struct_free_fn, NULL}, /* 75 */
{INET_HDR_USER_AGENT, "User-Agent", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_VIA, "Via", inet_msg_pack_via_list, inet_msg_unpack_via_list, inet_via_list_struct_copy_fn,
inet_via_list_struct_free_fn, inet_add_val_to_via_list_fn},
{INET_HDR_VARY, "Vary", inet_msg_pack_header_name_list, inet_msg_unpack_header_name_list,
inet_int_str_list_struct_copy_fn, inet_int_str_list_struct_free_fn},
{INET_HDR_WARNING, "Warning", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_WWW_AUTHENTICATE, "WWW-Authenticate", inet_msg_pack_authenticate, inet_msg_unpack_authenticate, inet_authenticate_struct_copy_fn, inet_authenticate_struct_free_fn, NULL}, /* 80 */
{INET_HDR_REQUEST_URI, NULL, inet_msg_pack_uri, inet_msg_unpack_uri, inet_uri_struct_copy_fn,
inet_uri_struct_free_fn, NULL},
{INET_HDR_START_LINE_PROTO, NULL, inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_MIN_SE, "Min-SE", inet_msg_pack_integer, inet_msg_unpack_integer, inet_kal_uint32_struct_copy_fn,
inet_kal_uint32_struct_free_fn, NULL},
{INET_HDR_EVENT, "Event", inet_msg_pack_event, inet_msg_unpack_event, inet_event_struct_copy_fn,
inet_event_struct_free_fn, NULL},
{INET_HDR_SUBSCRIPTION_STATE, "Subscription-State", inet_msg_pack_subscription_state, inet_msg_unpack_subscription_state, inet_subscription_state_struct_copy_fn, inet_subscription_state_struct_free_fn, NULL}, /* 85 */
{INET_HDR_SIP_IF_MATCH, "SIP-If-Match", inet_msg_pack_string, inet_msg_unpack_string,
inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL},
{INET_HDR_SIP_ETAG, "SIP-ETag", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL},
{INET_HDR_P_ALERTING_MODE, "P-Alerting-Mode", inet_msg_pack_string, inet_msg_unpack_string,
inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL},
{INET_HDR_P_PREFERRED_IDENTITY, "P-Preferred-Identity", inet_msg_pack_addr_list, inet_msg_unpack_addr_list,
inet_addr_list_struct_copy_fn, inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_PRIVACY, "Privacy", inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn, inet_kal_string_struct_free_fn, NULL}, /* 90 */
{INET_HDR_PRIV_ANSWER_MODE, "Priv-Answer-Mode", inet_msg_pack_string, inet_msg_unpack_string,
inet_answer_mode_struct_copy_fn, inet_answer_mode_struct_free_fn, NULL},
{INET_HDR_ANSWER_MODE, "Answer-Mode", inet_msg_pack_answer_mode, inet_msg_unpack_answer_mode,
inet_answer_mode_struct_copy_fn, inet_answer_mode_struct_free_fn, NULL},
{INET_HDR_REFERRED_BY, "Referred-By", inet_msg_pack_addr_list, inet_msg_unpack_addr_list,
inet_addr_list_struct_copy_fn, inet_addr_list_struct_free_fn, inet_add_val_to_addr_list_fn},
{INET_HDR_UNRECOGNIZED, NULL, inet_msg_pack_string, inet_msg_unpack_string, inet_kal_string_struct_copy_fn,
inet_kal_string_struct_free_fn, NULL}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -