📄 inet_msg_def.h
字号:
INET_HDR_AUTHORIZATION, /* 10 */
INET_HDR_CACHE_CONTROL, /* 11 */
INET_HDR_CALL_ID, /* 12 */
INET_HDR_CONTACT, /* 13 */
INET_HDR_CONNECTION, /* 14 */
INET_HDR_CONTENT_DISPOSITION, /* 15 */
INET_HDR_CONTENT_ENCODING, /* 16 */
INET_HDR_CONTENT_LANGUAGE, /* 17 */
INET_HDR_CONTENT_LENGTH, /* 18 */
INET_HDR_CONTENT_TYPE, /* 19 */
INET_HDR_CONTENT_ID, /* 20 */
INET_HDR_CONTENT_LOCATION, /* 21 */
INET_HDR_CONTENT_MD5, /* 22 */
INET_HDR_CONTENT_RANGE, /* 23 */
INET_HDR_CONTENT_TRANSER_ENCODING, /* 24 */
INET_HDR_COOKIE, /* 25 */
INET_HDR_CSEQ, /* 26 */
INET_HDR_DATE, /* 27 */
INET_HDR_ERROR_INFO, /* 28 */
INET_HDR_EXPECT, /* 29 */
INET_HDR_EXPIRES, /* 30 */
INET_HDR_ETAG, /* 31 */
INET_HDR_FROM, /* 32 */
INET_HDR_HOST, /* 33 */
INET_HDR_IF_MATCH, /* 34 */
INET_HDR_IF_MODIFIED_SINCE, /* 35 */
INET_HDR_IF_NONE_MATCH, /* 36 */
INET_HDR_IF_RANGE, /* 37 */
INET_HDR_IF_UNMODIFIED_SINCE, /* 38 */
INET_HDR_IN_REPLY_TO, /* 39 */
INET_HDR_LAST_MODIFIED, /* 40 */
INET_HDR_LOCATION, /* 41 */
INET_HDR_MAX_FORWARDS, /* 42 */
INET_HDR_METHOD, /* 43 */
INET_HDR_MIN_EXPIRES, /* 44 */
INET_HDR_MIME_VERSION, /* 45 */
INET_HDR_ORGANIZATION, /* 46 */
INET_HDR_PRAGMA, /* 47 */
INET_HDR_PRIORITY, /* 48 */
INET_HDR_PROXY_AUTHENTICATE, /* 49 */
INET_HDR_PROXY_AUTHORIZATION, /* 50 */
INET_HDR_PROXY_REQUIRE, /* 51 */
INET_HDR_RANGE, /* 52 */
INET_HDR_REASON_PHRASE, /* 53 */
INET_HDR_RECORD_ROUTE, /* 54 */
INET_HDR_REPLY_TO, /* 55 */
INET_HDR_REFER, /* 56 */
INET_HDR_REFER_TO, /* 57 */
INET_HDR_REQUIRE, /* 58 */
INET_HDR_RESP_CODE, /* 59 */
INET_HDR_RETRY_AFTER, /* 60 */
INET_HDR_ROUTE, /* 61 */
INET_HDR_SERVER, /* 62 */
INET_HDR_SET_COOKIE, /* 63 */
INET_HDR_SET_COOKIE2, /* 64 */
INET_HDR_SESSION_EXPIRES, /* 65 */
INET_HDR_SUBJECT, /* 66 */
INET_HDR_SUPPORTED, /* 67 */
INET_HDR_TIMESTAMP, /* 68 */
INET_HDR_TRAILER, /* 69 */
INET_HDR_TRANSFER_ENCODING, /* 70 */
INET_HDR_TE, /* 71 */
INET_HDR_TO, /* 72 */
INET_HDR_UNSUPPORTED, /* 73 */
INET_HDR_UPGRADE, /* 74 */
INET_HDR_URI, /* 75 */
INET_HDR_USER_AGENT, /* 76 */
INET_HDR_VIA, /* 77 */
INET_HDR_VARY, /* 78 */
INET_HDR_WARNING, /* 79 */
INET_HDR_WWW_AUTHENTICATE, /* 80 */
INET_HDR_REQUEST_URI, /* 81 */
INET_HDR_START_LINE_PROTO, /* 82 */
INET_HDR_MIN_SE, /* 83 */
INET_HDR_EVENT, /* 84 */
INET_HDR_SUBSCRIPTION_STATE, /* 85 */
INET_HDR_SIP_IF_MATCH, /* 86 */
INET_HDR_SIP_ETAG, /* 87 */
INET_HDR_P_ALERTING_MODE, /* 88 */
INET_HDR_P_PREFERRED_IDENTITY, /* 89 */
INET_HDR_PRIVACY, /* 90 */
INET_HDR_PRIV_ANSWER_MODE, /* 91 */
INET_HDR_ANSWER_MODE, /* 92 */
INET_HDR_REFERRED_BY, /* 93 */
INET_HDR_UNRECOGNIZED,
INET_HDR_NUM
} inet_header_field_enum;
typedef enum
{
INET_CACHE_CONTROL_NO_CACHE,
INET_CACHE_CONTROL_NO_STORE,
INET_CACHE_CONTROL_NO_TRANSFORM,
INET_CACHE_CONTROL_MAX_AGE,
INET_CACHE_CONTROL_MAX_STALE,
INET_CACHE_CONTROL_MIN_FRESH,
INET_CACHE_CONTROL_MUST_REVALIDATE,
INET_CACHE_CONTROL_ONLY_IF_CACHED,
INET_CACHE_CONTROL_PROXY_REVALIDATE,
INET_CACHE_CONTROL_PRIVATE,
INET_CACHE_CONTROL_PUBLIC,
INET_CACHE_CONTROL_S_MAXAGE,
INET_CACHE_CONTROL_NUM,
INET_CACHE_CONTROL_UNRECOGNIZED
} inet_cache_control_enum;
typedef enum
{
INET_URI_SCHEME_SIP,
INET_URI_SCHEME_SIPS,
INET_URI_SCHEME_HTTP,
INET_URI_SCHEME_HTTPS,
INET_URI_SCHEME_CID, /* kevin */
INET_URI_SCHEME_TEL, /* kevin */
INET_URI_SCHEME_NUM,
INET_URI_SCHEME_UNRECOGNIZED
} inet_uri_scheme_enum;
typedef enum
{
INET_DATA_TYPE_MEMORY,
INET_DATA_TYPE_FILE
} inet_data_type_enum;
/* Basic and Digest authentication mechanisms are defined in RFC2617:
HTTP Authentication Basic and Digest Access Authentication */
typedef enum
{
INET_AUTH_BASIC,
INET_AUTH_DIGEST,
INET_AUTH_UNSUPPORT
} inet_auth_type_enum;
/* MD5 and MD5-Session are defined in RFC2617:
HTTP Authentication Basic and Digest Access Authentication */
typedef enum
{
INET_AUTH_ALGO_UNSPECIFIED,
INET_AUTH_ALGO_MD5,
INET_AUTH_ALGO_MD5_SESS,
INET_AUTH_ALGO_UNSUPPORT
} inet_auth_algorithm_enum;
/* Auth and Auth-Integrity are defined in RFC2617:
HTTP Authentication Basic and Digest Access Authentication */
typedef enum
{
INET_AUTH_QOP_UNSPECIFIED,
INET_AUTH_QOP_AUTH,
INET_AUTH_QOP_AUTH_INT,
INET_AUTH_QOP_UNSUPPORT
} inet_auth_qop_enum;
typedef enum
{
inet_kal_uint32_struct_,
inet_kal_string_struct_,
inet_param_struct_,
inet_param_list_struct_,
inet_int_struct_,
inet_int_list_struct_,
inet_int_param_struct_,
inet_int_param_list_struct_,
inet_str_struct_,
inet_str_list_struct_,
inet_str_param_struct_,
inet_str_param_list_struct_,
inet_int_str_struct_,
inet_int_str_list_struct_,
inet_uri_struct_,
inet_authenticate_struct_,
inet_authorization_struct_,
inet_authentication_info_struct_,
inet_addr_struct_,
inet_addr_list_struct_,
inet_content_range_struct_,
inet_cookie_struct_,
inet_cookie_list_struct_,
inet_content_type_struct_,
inet_content_type_list_struct_,
inet_cseq_struct_,
inet_via_struct_,
inet_via_list_struct_,
inet_retry_after_struct_,
inet_session_expires_struct_,
inet_event_struct_,
inet_subscription_state_struct_,
inet_answer_mode_struct_,
inet_struct_num
} inet_struct_enum;
typedef enum
{
INET_STATUS_IDLE,
INET_STATUS_PROCESSING,
INET_STATUS_FILE_WRITING,
INET_STATUS_FILE_READING,
INET_STATUS_UNPACK_HDR,
INET_STATUS_UNPACK_BODY,
INET_STATUS_PACK_HDR,
INET_STATUS_PACK_BODY
} inet_status_enum;
#define CHECK_INET_PARAM(x,y) \
{ \
if(!x){return y;} \
}
#define CHECK_INET_PACK_ENBUF(x) \
{ \
if(x<0){return INET_RESULT_NO_ENBUF;} \
}
/*****************************************************************************
* Extern Global Variable
*****************************************************************************/
/*****************************************************************************
* Extern Global Function
*****************************************************************************/
#endif /* _INET_MSG_DEF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -