wsp.h
来自「mms client」· C头文件 代码 · 共 89 行
H
89 行
/* * wsp.h - WSP implementation header */#ifndef WSP_H#define WSP_H/* * int WSP_accepted_extended_methods[] = { -1 }; * int WSP_accepted_header_code_pages[] = { -1 }; *//* See Table 35 of the WSP standard */enum wsp_abort_values { WSP_ABORT_PROTOERR = 0xe0, WSP_ABORT_DISCONNECT = 0xe1, WSP_ABORT_SUSPEND = 0xe2, WSP_ABORT_RESUME = 0xe3, WSP_ABORT_CONGESTION = 0xe4, WSP_ABORT_CONNECTERR = 0xe5, WSP_ABORT_MRUEXCEEDED = 0xe6, WSP_ABORT_MOREXCEEDED = 0xe7, WSP_ABORT_PEERREQ = 0xe8, WSP_ABORT_NETERR = 0xe9, WSP_ABORT_USERREQ = 0xea, WSP_ABORT_USERRFS = 0xeb, WSP_ABORT_USERPND = 0xec, WSP_ABORT_USERDCR = 0xed, WSP_ABORT_USERDCU = 0xee};typedef struct WSPClientMachine WSPClientMachine;typedef struct WSPClientMachine WSPMachine;//typedef struct WSPClientMethodMachine WSPMethodMachine;typedef struct WSPClientMethodMachine WSPClientMethodMachine;//typedef struct WSPClientPushMachine WSPPushMachine;typedef struct WSPClientPushMachine WSPClientPushMachine;#include "gwlib/gwlib.h"#include "wap_addr.h"#include "wap_events.h"/* server machines *//* client machines */struct WSPClientMachine { #define INTEGER(name) long name; #define OCTSTR(name) Octstr *name; #define HTTPHEADERS(name) List *name; #define ADDRTUPLE(name) WAPAddrTuple *name; #define COOKIES(name) List *name; #define REFERER(name) Octstr *name; #define MACHINESLIST(name) List *name; #define CAPABILITIES(name) List *name; #define MACHINE(fields) fields #include "wsp_client_session_machine.def"};struct WSPClientPushMachine { #define INTEGER(name) long name; #define ADDRTUPLE(name) WAPAddrTuple *name; #define HTTPHEADER(name) List *name; #define MACHINE(fields) fields #include "wsp_client_push_machine.def"};struct WSPClientMethodMachine { #define INTEGER(name) long name; #define ADDRTUPLE(name) WAPAddrTuple *name; #define EVENT(name) WAPEvent *name; #define MACHINE(fields) fields #include "wsp_client_method_machine.def"};/* * Shared stuff. */long wsp_convert_http_status_to_wsp_status(long http_status);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?