00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 #ifndef WSP_H
00062 #define WSP_H
00063
00064
00065
00066
00067
00068
00069 typedef enum {
00070 WSP_1_1 = 1,
00071 WSP_1_2 = 2,
00072 WSP_1_3 = 3,
00073 WSP_1_4 = 4,
00074 WSP_1_5 = 5,
00075 WSP_1_6 = 6,
00076 } wsp_encoding;
00077
00078
00079 enum wsp_abort_values {
00080 WSP_ABORT_PROTOERR = 0xe0,
00081 WSP_ABORT_DISCONNECT = 0xe1,
00082 WSP_ABORT_SUSPEND = 0xe2,
00083 WSP_ABORT_RESUME = 0xe3,
00084 WSP_ABORT_CONGESTION = 0xe4,
00085 WSP_ABORT_CONNECTERR = 0xe5,
00086 WSP_ABORT_MRUEXCEEDED = 0xe6,
00087 WSP_ABORT_MOREXCEEDED = 0xe7,
00088 WSP_ABORT_PEERREQ = 0xe8,
00089 WSP_ABORT_NETERR = 0xe9,
00090 WSP_ABORT_USERREQ = 0xea,
00091 WSP_ABORT_USERRFS = 0xeb,
00092 WSP_ABORT_USERPND = 0xec,
00093 WSP_ABORT_USERDCR = 0xed,
00094 WSP_ABORT_USERDCU = 0xee
00095 };
00096
00097
00098 typedef struct WSPMachine WSPMachine;
00099 typedef struct WSPMethodMachine WSPMethodMachine;
00100 typedef struct WSPPushMachine WSPPushMachine;
00101
00102 #include "gwlib/gwlib.h"
00103 #include "wap_addr.h"
00104 #include "wap_events.h"
00105
00106 struct WSPMachine {
00107 #define INTEGER(name) long name;
00108 #define OCTSTR(name) Octstr *name;
00109 #define HTTPHEADERS(name) List *name;
00110 #define ADDRTUPLE(name) WAPAddrTuple *name;
00111 #define COOKIES(name) List *name;
00112 #define REFERER(name) Octstr *name;
00113 #define MACHINESLIST(name) List *name;
00114 #define CAPABILITIES(name) List *name;
00115 #define MACHINE(fields) fields
00116 #include "wsp_server_session_machine.def"
00117 };
00118
00119
00120 struct WSPMethodMachine {
00121 #define INTEGER(name) long name;
00122 #define ADDRTUPLE(name) WAPAddrTuple *name;
00123 #define EVENT(name) WAPEvent *name;
00124 #define MACHINE(fields) fields
00125 #include "wsp_server_method_machine.def"
00126 };
00127
00128 struct WSPPushMachine {
00129 #define INTEGER(name) long name;
00130 #define ADDRTUPLE(name) WAPAddrTuple *name;
00131 #define HTTPHEADER(name) List *name;
00132 #define MACHINE(fields) fields
00133 #include "wsp_server_push_machine.def"
00134 };
00135
00136
00137
00138
00139 long wsp_convert_http_status_to_wsp_status(long http_status);
00140 WSPMachine *find_session_machine_by_id(int);
00141
00142 #endif
00143
00144
00145
See file LICENSE for details about the license agreement for using,
modifying, copying or deriving work from this software.