-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsws.cbl
226 lines (225 loc) · 8.15 KB
/
wsws.cbl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
copy "cabi.cpy".
******************************************************************
identification division.
program-id. lws-get-vhost.
data division.
working-storage section.
01 ws-wsi usage is pointer synchronized.
linkage section.
01 ls-wsi usage is pointer.
01 ls-return usage is pointer.
procedure division using by value ls-wsi
by reference ls-return
returning omitted.
*
set ws-wsi to ls-wsi.
call static "lws_get_vhost" using by value ws-wsi
returning ls-return end-call.
goback.
end program lws-get-vhost.
******************************************************************
identification division.
program-id. lws-get-protocol.
data division.
working-storage section.
01 ws-wsi usage is pointer synchronized.
linkage section.
01 ls-wsi usage is pointer.
01 ls-return usage is pointer.
procedure division using by value ls-wsi
by reference ls-return
returning omitted.
*
set ws-wsi to ls-wsi.
call static "lws_get_protocol" using by value ws-wsi
returning ls-return end-call.
goback.
end program lws-get-protocol.
******************************************************************
identification division.
program-id. lws-timed-callback-vh-protocol.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-vhost usage is pointer.
01 ls-protocol usage is pointer.
01 ls-reason :tp-int:.
01 ls-timer :tp-int:.
procedure division using by value ls-vhost
by value ls-protocol
by value ls-reason
by value ls-timer.
*
call static "lws_timed_callback_vh_protocol" using
by value ls-vhost
by value ls-protocol
by value ls-reason
by value ls-timer
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-timed-callback-vh-protocol.
******************************************************************
identification division.
program-id. lws-callback-on-writable.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-wsi usage is pointer.
procedure division using by value ls-wsi.
*
call static "lws_callback_on_writable" using by value ls-wsi
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-callback-on-writable.
******************************************************************
identification division.
program-id. lws-set-timer-usecs.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-wsi usage is pointer.
01 ls-usecs :tp-ulong:.
procedure division using by value ls-wsi
by value ls-usecs.
*
call static "lws_set_timer_usecs" using by value ls-wsi
by value ls-usecs
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-set-timer-usecs.
******************************************************************
identification division.
program-id. lws-callback-http-dummy.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-wsi usage is pointer synchronized.
01 ls-reason :tp-int: synchronized.
copy "wsws.cpy" replacing ==:pref:== by ==ls-==.
01 ls-user usage is pointer synchronized.
01 ls-in usage is pointer synchronized.
01 ls-length :tp-sizet: synchronized.
procedure division using by value ls-wsi
by value ls-reason
by value ls-user
by value ls-in
by value ls-length.
*
call static "lws_callback_http_dummy" using by value ls-wsi
by value ls-reason
by value ls-user
by value ls-in
by value ls-length
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-callback-http-dummy.
******************************************************************
identification division.
program-id. lws-service.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-wsi usage is pointer.
01 ls-usecs :tp-ulong:.
procedure division using by value ls-wsi
by value ls-usecs.
*
call static "lws_service" using by value ls-wsi
by value ls-usecs
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-service.
******************************************************************
identification division.
program-id. lws-context-destroy.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-ws-ctx usage is pointer.
procedure division using by value ls-ws-ctx.
*
call static "lws_context_destroy" using by value ls-ws-ctx
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-context-destroy.
******************************************************************
identification division.
program-id. lws-create-context.
data division.
working-storage section.
01 ws-pointer usage is pointer.
linkage section.
01 ls-info usage is pointer.
01 ls-return usage is pointer.
procedure division using by value ls-info
by reference ls-return.
*
call static "lws_create_context" using by value ls-info
returning ls-return end-call.
goback.
end program lws-create-context.
******************************************************************
identification division.
program-id. lws-canonical-hostname.
data division.
working-storage section.
01 ws-pointer usage is pointer.
linkage section.
01 ls-ws-ctx usage is pointer.
01 ls-return usage is pointer.
procedure division using by value ls-ws-ctx
by reference ls-return.
*
call static "lws_canonical_hostname" using
by value ls-ws-ctx
returning ls-return end-call.
goback.
end program lws-canonical-hostname.
******************************************************************
identification division.
program-id. lws-client-connect-via-info.
data division.
working-storage section.
01 ws-pointer usage is pointer.
linkage section.
01 ls-conn usage is pointer.
01 ls-return usage is pointer.
procedure division using by value ls-conn
by reference ls-return.
*
call static "lws_client_connect_via_info" using
by value ls-conn
returning ls-return end-call.
goback.
end program lws-client-connect-via-info.
******************************************************************
identification division.
program-id. lws-set-log-level.
data division.
working-storage section.
01 ws-status :tp-int:.
linkage section.
01 ls-level :tp-int:.
01 ls-pointer usage is pointer.
procedure division using by value ls-level
by value ls-pointer.
*
call static "lws_set_log_level" using by value ls-level
by value ls-pointer
returning ws-status end-call.
set return-code to ws-status.
goback.
end program lws-set-log-level.
******************************************************************