terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
HttpConnection.cs
Go to the documentation of this file.
1using System;
3using System.IO;
8using System.Text;
10using Cpp2ILInjected;
12
13namespace System.Net
14{
15 [global::Cpp2ILInjected.Token(Token = "0x2000246")]
16 internal sealed class HttpConnection
17 {
18 [global::Cpp2ILInjected.Token(Token = "0x6000EAB")]
19 [global::Cpp2ILInjected.Address(RVA = "0x1F44E48", Offset = "0x1F44E48", Length = "0x250")]
20 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(EndPointListener), Member = "ProcessAccept", MemberParameters = new object[] { typeof(SocketAsyncEventArgs) }, ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetworkStream), Member = ".ctor", MemberParameters = new object[]
25 {
27 typeof(bool)
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RemoteCertificateValidationCallback), Member = ".ctor", MemberParameters = new object[]
30 {
31 typeof(object),
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListener), Member = "CreateSslStream", MemberParameters = new object[]
35 {
37 typeof(bool),
38 typeof(RemoteCertificateValidationCallback)
39 }, ReturnType = typeof(SslStream))]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimerCallback), Member = ".ctor", MemberParameters = new object[]
41 {
42 typeof(object),
44 }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Timer), Member = ".ctor", MemberParameters = new object[]
46 {
47 typeof(TimerCallback),
48 typeof(object),
49 typeof(int),
50 typeof(int)
51 }, ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Init", ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
55 {
56 throw null;
57 }
58
59 [global::Cpp2ILInjected.Token(Token = "0x17000307")]
61 {
62 [global::Cpp2ILInjected.Token(Token = "0x6000EAC")]
63 [global::Cpp2ILInjected.Address(RVA = "0x1F49858", Offset = "0x1F49858", Length = "0x8")]
64 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
65 get
66 {
67 throw null;
68 }
69 }
70
71 [global::Cpp2ILInjected.Token(Token = "0x17000308")]
73 {
74 [global::Cpp2ILInjected.Token(Token = "0x6000EAD")]
75 [global::Cpp2ILInjected.Address(RVA = "0x1F49860", Offset = "0x1F49860", Length = "0x8")]
76 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
77 get
78 {
79 throw null;
80 }
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x17000309")]
85 {
86 [global::Cpp2ILInjected.Token(Token = "0x6000EAE")]
87 [global::Cpp2ILInjected.Address(RVA = "0x1F49868", Offset = "0x1F49868", Length = "0x8")]
88 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
89 get
90 {
91 throw null;
92 }
93 }
94
95 [global::Cpp2ILInjected.Token(Token = "0x6000EAF")]
96 [global::Cpp2ILInjected.Address(RVA = "0x1F497B4", Offset = "0x1F497B4", Length = "0xA4")]
97 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = ".ctor", MemberParameters = new object[]
98 {
101 typeof(bool),
103 }, ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
105 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryStream), Member = ".ctor", ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerContext), Member = ".ctor", MemberParameters = new object[] { typeof(HttpConnection) }, ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
109 private void Init()
110 {
111 throw null;
112 }
113
114 [global::Cpp2ILInjected.Token(Token = "0x1700030A")]
115 public bool IsClosed
116 {
117 [global::Cpp2ILInjected.Token(Token = "0x6000EB0")]
118 [global::Cpp2ILInjected.Address(RVA = "0x1F49918", Offset = "0x1F49918", Length = "0x10")]
119 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
120 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
121 get
122 {
123 throw null;
124 }
125 }
126
127 [global::Cpp2ILInjected.Token(Token = "0x1700030B")]
128 public int Reuses
129 {
130 [global::Cpp2ILInjected.Token(Token = "0x6000EB1")]
131 [global::Cpp2ILInjected.Address(RVA = "0x1F49928", Offset = "0x1F49928", Length = "0x8")]
132 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
133 get
134 {
135 throw null;
136 }
137 }
138
139 [global::Cpp2ILInjected.Token(Token = "0x1700030C")]
141 {
142 [global::Cpp2ILInjected.Token(Token = "0x6000EB2")]
143 [global::Cpp2ILInjected.Address(RVA = "0x1F49930", Offset = "0x1F49930", Length = "0xB0")]
144 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
145 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "FinishInitialization", ReturnType = typeof(bool))]
146 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_IsLocal", ReturnType = typeof(bool))]
147 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_LocalEndPoint", ReturnType = typeof(IPEndPoint))]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_UserHostAddress", ReturnType = typeof(string))]
149 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Socket), Member = "get_LocalEndPoint", ReturnType = typeof(EndPoint))]
151 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
152 get
153 {
154 throw null;
155 }
156 }
157
158 [global::Cpp2ILInjected.Token(Token = "0x1700030D")]
160 {
161 [global::Cpp2ILInjected.Token(Token = "0x6000EB3")]
162 [global::Cpp2ILInjected.Address(RVA = "0x1F499E0", Offset = "0x1F499E0", Length = "0x80")]
163 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
164 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_IsLocal", ReturnType = typeof(bool))]
165 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_RemoteEndPoint", ReturnType = typeof(IPEndPoint))]
166 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Socket), Member = "get_RemoteEndPoint", ReturnType = typeof(EndPoint))]
168 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
169 get
170 {
171 throw null;
172 }
173 }
174
175 [global::Cpp2ILInjected.Token(Token = "0x1700030E")]
176 public bool IsSecure
177 {
178 [global::Cpp2ILInjected.Token(Token = "0x6000EB4")]
179 [global::Cpp2ILInjected.Address(RVA = "0x1F49A60", Offset = "0x1F49A60", Length = "0x8")]
180 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
181 get
182 {
183 throw null;
184 }
185 }
186
187 [global::Cpp2ILInjected.Token(Token = "0x1700030F")]
189 {
190 [global::Cpp2ILInjected.Token(Token = "0x6000EB5")]
191 [global::Cpp2ILInjected.Address(RVA = "0x1F49A68", Offset = "0x1F49A68", Length = "0x8")]
192 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
193 get
194 {
195 throw null;
196 }
197 [global::Cpp2ILInjected.Token(Token = "0x6000EB6")]
198 [global::Cpp2ILInjected.Address(RVA = "0x1F49A70", Offset = "0x1F49A70", Length = "0x8")]
199 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
200 set
201 {
202 throw null;
203 }
204 }
205
206 [global::Cpp2ILInjected.Token(Token = "0x6000EB7")]
207 [global::Cpp2ILInjected.Address(RVA = "0x1F49A78", Offset = "0x1F49A78", Length = "0x18")]
208 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
209 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "CloseSocket", ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Unbind", ReturnType = typeof(void))]
211 private void OnTimeout(object unused)
212 {
213 throw null;
214 }
215
216 [global::Cpp2ILInjected.Token(Token = "0x6000EB8")]
217 [global::Cpp2ILInjected.Address(RVA = "0x1F45098", Offset = "0x1F45098", Length = "0x18C")]
218 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
219 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(EndPointListener), Member = "ProcessAccept", MemberParameters = new object[] { typeof(SocketAsyncEventArgs) }, ReturnType = typeof(void))]
220 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
221 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Timer), Member = "Change", MemberParameters = new object[]
223 {
224 typeof(int),
225 typeof(int)
226 }, ReturnType = typeof(bool))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "CloseSocket", ReturnType = typeof(void))]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Unbind", ReturnType = typeof(void))]
229 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
230 public void BeginReadRequest()
231 {
232 throw null;
233 }
234
235 [global::Cpp2ILInjected.Token(Token = "0x6000EB9")]
236 [global::Cpp2ILInjected.Address(RVA = "0x1F49BCC", Offset = "0x1F49BCC", Length = "0x130")]
237 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
238 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "get_InputStream", ReturnType = typeof(Stream))]
239 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
240 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerResponse), Member = "set_SendChunked", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
241 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ChunkedInputStream), Member = ".ctor", MemberParameters = new object[]
242 {
244 typeof(Stream),
245 typeof(byte[]),
246 typeof(int),
247 typeof(int)
248 }, ReturnType = typeof(void))]
249 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RequestStream), Member = ".ctor", MemberParameters = new object[]
250 {
251 typeof(Stream),
252 typeof(byte[]),
253 typeof(int),
254 typeof(int),
255 typeof(long)
256 }, ReturnType = typeof(void))]
257 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
259 {
260 throw null;
261 }
262
263 [global::Cpp2ILInjected.Token(Token = "0x6000EBA")]
264 [global::Cpp2ILInjected.Address(RVA = "0x1F49DC0", Offset = "0x1F49DC0", Length = "0xB8")]
265 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
266 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "FinishInitialization", ReturnType = typeof(bool))]
267 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "get_OutputStream", ReturnType = typeof(Stream))]
268 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "Close", MemberParameters = new object[]
269 {
270 typeof(byte[]),
271 typeof(bool)
272 }, ReturnType = typeof(void))]
273 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "SendHeaders", MemberParameters = new object[]
274 {
275 typeof(bool),
277 }, ReturnType = typeof(void))]
278 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
279 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ResponseStream), Member = ".ctor", MemberParameters = new object[]
280 {
281 typeof(Stream),
283 typeof(bool)
284 }, ReturnType = typeof(void))]
285 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
287 {
288 throw null;
289 }
290
291 [global::Cpp2ILInjected.Token(Token = "0x6000EBB")]
292 [global::Cpp2ILInjected.Address(RVA = "0x1F49E78", Offset = "0x1F49E78", Length = "0xCC")]
293 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
294 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
295 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
296 private static void OnRead(IAsyncResult ares)
297 {
298 throw null;
299 }
300
301 [global::Cpp2ILInjected.Token(Token = "0x6000EBC")]
302 [global::Cpp2ILInjected.Address(RVA = "0x1F49F44", Offset = "0x1F49F44", Length = "0x2EC")]
303 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
304 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
305 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Timer), Member = "Change", MemberParameters = new object[]
306 {
307 typeof(int),
308 typeof(int)
309 }, ReturnType = typeof(bool))]
310 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "ProcessInput", MemberParameters = new object[] { typeof(MemoryStream) }, ReturnType = typeof(bool))]
311 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "SendError", MemberParameters = new object[]
312 {
313 typeof(string),
314 typeof(int)
315 }, ReturnType = typeof(void))]
316 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
317 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerRequest), Member = "FinishInitialization", ReturnType = typeof(bool))]
318 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EndPointListener), Member = "BindContext", MemberParameters = new object[] { typeof(HttpListenerContext) }, ReturnType = typeof(bool))]
319 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "RemoveConnection", ReturnType = typeof(void))]
320 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListener), Member = "RegisterContext", MemberParameters = new object[] { typeof(HttpListenerContext) }, ReturnType = typeof(void))]
321 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "CloseSocket", ReturnType = typeof(void))]
322 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Unbind", ReturnType = typeof(void))]
323 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
325 {
326 throw null;
327 }
328
329 [global::Cpp2ILInjected.Token(Token = "0x6000EBD")]
330 [global::Cpp2ILInjected.Address(RVA = "0x1F4AA98", Offset = "0x1F4AA98", Length = "0x28")]
331 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
332 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "CloseSocket", ReturnType = typeof(void))]
333 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
334 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
335 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EndPointListener), Member = "RemoveConnection", MemberParameters = new object[] { typeof(HttpConnection) }, ReturnType = typeof(void))]
336 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
337 private void RemoveConnection()
338 {
339 throw null;
340 }
341
342 [global::Cpp2ILInjected.Token(Token = "0x6000EBE")]
343 [global::Cpp2ILInjected.Address(RVA = "0x1F4A240", Offset = "0x1F4A240", Length = "0x290")]
344 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
345 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
346 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
347 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "ReadLine", MemberParameters = new object[]
348 {
349 typeof(byte[]),
350 typeof(int),
351 typeof(int),
352 typeof(ref int)
353 }, ReturnType = typeof(string))]
354 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
355 {
356 typeof(string),
357 typeof(string)
358 }, ReturnType = typeof(bool))]
359 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerRequest), Member = "AddHeader", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
360 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerRequest), Member = "SetRequestLine", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
361 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
363 {
364 throw null;
365 }
366
367 [global::Cpp2ILInjected.Token(Token = "0x6000EBF")]
368 [global::Cpp2ILInjected.Address(RVA = "0x1F4AE24", Offset = "0x1F4AE24", Length = "0x13C")]
369 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
370 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "ProcessInput", MemberParameters = new object[] { typeof(MemoryStream) }, ReturnType = typeof(bool))]
371 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
372 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
373 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(StringBuilder))]
374 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "set_Length", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
375 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
376 private string ReadLine(byte[] buffer, int offset, int len, ref int used)
377 {
378 throw null;
379 }
380
381 [global::Cpp2ILInjected.Token(Token = "0x6000EC0")]
382 [global::Cpp2ILInjected.Address(RVA = "0x1F3FC88", Offset = "0x1F3FC88", Length = "0x1A0")]
383 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
384 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ChunkedInputStream), Member = "OnRead", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
385 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
386 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "SendError", ReturnType = typeof(void))]
387 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerRequest), Member = "FinishInitialization", ReturnType = typeof(bool))]
388 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
389 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerResponse), Member = "set_StatusCode", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
390 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerResponse), Member = "set_ContentType", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
391 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpStatusDescription), Member = "Get", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
392 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
393 {
394 typeof(string),
395 typeof(object),
396 typeof(object)
397 }, ReturnType = typeof(string))]
398 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
399 {
400 typeof(string),
401 typeof(object)
402 }, ReturnType = typeof(string))]
403 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Encoding), Member = "get_Default", ReturnType = typeof(Encoding))]
404 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerResponse), Member = "Close", MemberParameters = new object[]
405 {
406 typeof(byte[]),
407 typeof(bool)
408 }, ReturnType = typeof(void))]
409 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
410 public void SendError(string msg, int status)
411 {
412 throw null;
413 }
414
415 [global::Cpp2ILInjected.Token(Token = "0x6000EC1")]
416 [global::Cpp2ILInjected.Address(RVA = "0x1F4A230", Offset = "0x1F4A230", Length = "0x10")]
417 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
418 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "SendError", MemberParameters = new object[]
419 {
420 typeof(string),
421 typeof(int)
422 }, ReturnType = typeof(void))]
423 public void SendError()
424 {
425 throw null;
426 }
427
428 [global::Cpp2ILInjected.Token(Token = "0x6000EC2")]
429 [global::Cpp2ILInjected.Address(RVA = "0x1F49B98", Offset = "0x1F49B98", Length = "0x34")]
430 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnTimeout", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
431 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "BeginReadRequest", ReturnType = typeof(void))]
432 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
433 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
434 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
435 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListener), Member = "UnregisterContext", MemberParameters = new object[] { typeof(HttpListenerContext) }, ReturnType = typeof(void))]
436 private void Unbind()
437 {
438 throw null;
439 }
440
441 [global::Cpp2ILInjected.Token(Token = "0x6000EC3")]
442 [global::Cpp2ILInjected.Address(RVA = "0x1F4BD14", Offset = "0x1F4BD14", Length = "0x8")]
443 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
444 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
445 public void Close()
446 {
447 throw null;
448 }
449
450 [global::Cpp2ILInjected.Token(Token = "0x6000EC4")]
451 [global::Cpp2ILInjected.Address(RVA = "0x1F49A90", Offset = "0x1F49A90", Length = "0x108")]
452 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
453 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnTimeout", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
454 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "BeginReadRequest", ReturnType = typeof(void))]
455 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
456 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
457 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Socket), Member = "Close", ReturnType = typeof(void))]
458 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "RemoveConnection", ReturnType = typeof(void))]
459 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
460 private void CloseSocket()
461 {
462 throw null;
463 }
464
465 [global::Cpp2ILInjected.Token(Token = "0x6000EC5")]
466 [global::Cpp2ILInjected.Address(RVA = "0x1F467BC", Offset = "0x1F467BC", Length = "0x240")]
467 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
468 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(EndPointListener), Member = "Close", ReturnType = typeof(void))]
469 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "OnReadInternal", MemberParameters = new object[] { typeof(IAsyncResult) }, ReturnType = typeof(void))]
470 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpConnection), Member = "Close", ReturnType = typeof(void))]
471 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListener), Member = "Cleanup", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
472 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "System.IDisposable.Dispose", ReturnType = typeof(void))]
473 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "Abort", ReturnType = typeof(void))]
474 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "Close", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
475 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "Close", ReturnType = typeof(void))]
476 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(HttpListenerResponse), Member = "Close", MemberParameters = new object[]
477 {
478 typeof(byte[]),
479 typeof(bool)
480 }, ReturnType = typeof(void))]
481 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
482 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "GetResponseStream", ReturnType = typeof(ResponseStream))]
483 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerRequest), Member = "get_KeepAlive", ReturnType = typeof(bool))]
484 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NameValueCollection), Member = "get_Item", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
485 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
486 {
487 typeof(string),
488 typeof(string)
489 }, ReturnType = typeof(bool))]
490 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpListenerRequest), Member = "FlushInput", ReturnType = typeof(bool))]
491 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Unbind", ReturnType = typeof(void))]
492 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "Init", ReturnType = typeof(void))]
493 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "BeginReadRequest", ReturnType = typeof(void))]
494 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Socket), Member = "Shutdown", MemberParameters = new object[] { typeof(SocketShutdown) }, ReturnType = typeof(void))]
495 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Socket), Member = "Close", ReturnType = typeof(void))]
496 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(HttpConnection), Member = "RemoveConnection", ReturnType = typeof(void))]
497 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
498 internal void Close(bool force_close)
499 {
500 throw null;
501 }
502
503 // Note: this type is marked as 'beforefieldinit'.
504 [global::Cpp2ILInjected.Token(Token = "0x6000EC6")]
505 [global::Cpp2ILInjected.Address(RVA = "0x1F4C104", Offset = "0x1F4C104", Length = "0x94")]
506 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
507 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AsyncCallback), Member = ".ctor", MemberParameters = new object[]
508 {
509 typeof(object),
511 }, ReturnType = typeof(void))]
512 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
514 {
515 throw null;
516 }
517
519 [global::Cpp2ILInjected.Token(Token = "0x6000EC7")]
520 [global::Cpp2ILInjected.Address(RVA = "0x1F4C198", Offset = "0x1F4C198", Length = "0xDC")]
521 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
522 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
523 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(X509Certificate2), Member = ".ctor", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
524 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
525 private bool <.ctor>b__24_0(object t, X509Certificate c, X509Chain ch, SslPolicyErrors e)
526 {
527 throw null;
528 }
529
530 [global::Cpp2ILInjected.Token(Token = "0x4000BF3")]
531 private static AsyncCallback onread_cb;
532
533 [global::Cpp2ILInjected.Token(Token = "0x4000BF4")]
534 private const int BufferSize = 8192;
535
536 [global::Cpp2ILInjected.Token(Token = "0x4000BF5")]
537 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
538 private Socket sock;
539
540 [global::Cpp2ILInjected.Token(Token = "0x4000BF6")]
541 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
542 private Stream stream;
543
544 [global::Cpp2ILInjected.Token(Token = "0x4000BF7")]
545 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
547
548 [global::Cpp2ILInjected.Token(Token = "0x4000BF8")]
549 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
551
552 [global::Cpp2ILInjected.Token(Token = "0x4000BF9")]
553 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
554 private byte[] buffer;
555
556 [global::Cpp2ILInjected.Token(Token = "0x4000BFA")]
557 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
559
560 [global::Cpp2ILInjected.Token(Token = "0x4000BFB")]
561 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
563
564 [global::Cpp2ILInjected.Token(Token = "0x4000BFC")]
565 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
567
568 [global::Cpp2ILInjected.Token(Token = "0x4000BFD")]
569 [global::Cpp2ILInjected.FieldOffset(Offset = "0x50")]
571
572 [global::Cpp2ILInjected.Token(Token = "0x4000BFE")]
573 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
575
576 [global::Cpp2ILInjected.Token(Token = "0x4000BFF")]
577 [global::Cpp2ILInjected.FieldOffset(Offset = "0x60")]
578 private bool chunked;
579
580 [global::Cpp2ILInjected.Token(Token = "0x4000C00")]
581 [global::Cpp2ILInjected.FieldOffset(Offset = "0x64")]
582 private int reuses;
583
584 [global::Cpp2ILInjected.Token(Token = "0x4000C01")]
585 [global::Cpp2ILInjected.FieldOffset(Offset = "0x68")]
586 private bool context_bound;
587
588 [global::Cpp2ILInjected.Token(Token = "0x4000C02")]
589 [global::Cpp2ILInjected.FieldOffset(Offset = "0x69")]
590 private bool secure;
591
592 [global::Cpp2ILInjected.Token(Token = "0x4000C03")]
593 [global::Cpp2ILInjected.FieldOffset(Offset = "0x70")]
595
596 [global::Cpp2ILInjected.Token(Token = "0x4000C04")]
597 [global::Cpp2ILInjected.FieldOffset(Offset = "0x78")]
598 private int s_timeout;
599
600 [global::Cpp2ILInjected.Token(Token = "0x4000C05")]
601 [global::Cpp2ILInjected.FieldOffset(Offset = "0x80")]
602 private Timer timer;
603
604 [global::Cpp2ILInjected.Token(Token = "0x4000C06")]
605 [global::Cpp2ILInjected.FieldOffset(Offset = "0x88")]
607
608 [global::Cpp2ILInjected.Token(Token = "0x4000C07")]
609 [global::Cpp2ILInjected.FieldOffset(Offset = "0x90")]
611
612 [global::Cpp2ILInjected.Token(Token = "0x4000C08")]
613 [global::Cpp2ILInjected.FieldOffset(Offset = "0x98")]
614 private int[] client_cert_errors;
615
616 [global::Cpp2ILInjected.Token(Token = "0x4000C09")]
617 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA0")]
619
620 [global::Cpp2ILInjected.Token(Token = "0x4000C0A")]
621 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA8")]
623
624 [global::Cpp2ILInjected.Token(Token = "0x4000C0B")]
625 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB0")]
627
628 [global::Cpp2ILInjected.Token(Token = "0x4000C0C")]
629 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB4")]
631
632 [global::Cpp2ILInjected.Token(Token = "0x4000C0D")]
633 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB8")]
634 private int position;
635
636 [global::Cpp2ILInjected.Token(Token = "0x2000247")]
637 private enum InputState
638 {
639 [global::Cpp2ILInjected.Token(Token = "0x4000C0F")]
641 [global::Cpp2ILInjected.Token(Token = "0x4000C10")]
642 Headers
643 }
644
645 [global::Cpp2ILInjected.Token(Token = "0x2000248")]
646 private enum LineState
647 {
648 [global::Cpp2ILInjected.Token(Token = "0x4000C12")]
649 None,
650 [global::Cpp2ILInjected.Token(Token = "0x4000C13")]
651 CR,
652 [global::Cpp2ILInjected.Token(Token = "0x4000C14")]
653 LF
654 }
655 }
656}
class f__AnonymousType0<< Count > j__TPar
RequestStream GetRequestStream(bool chunked, long contentlength)
void Close(bool force_close)
HttpConnection.InputState input_state
void SendError(string msg, int status)
static void OnRead(IAsyncResult ares)
HttpListenerContext context
void OnTimeout(object unused)
X509Certificate2 client_cert
X509Certificate2 ClientCertificate
bool<.ctor > b__24_0(object t, X509Certificate c, X509Chain ch, SslPolicyErrors e)
HttpConnection.LineState line_state
static AsyncCallback onread_cb
ResponseStream GetResponseStream()
void OnReadInternal(IAsyncResult ares)
bool ProcessInput(MemoryStream ms)
HttpConnection(Socket sock, EndPointListener epl, bool secure, X509Certificate cert)
string ReadLine(byte[] buffer, int offset, int len, ref int used)