terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ OnReadInternal()

void System.Net.HttpConnection.OnReadInternal ( IAsyncResult ares)
inlineprivate

Definition at line 253 of file HttpConnection.cs.

254 {
255 HttpListenerContext httpListenerContext;
256 string error;
257 HttpListenerContext httpListenerContext2;
258 for (;;)
259 {
260 Timer timer = this.timer;
261 Stream stream = this.stream;
263 byte[] array = this.buffer;
265 if (stream == null)
266 {
267 goto IL_0154;
268 }
270 bool flag = this.ProcessInput(memoryStream3);
272 error = httpListenerContext.error;
273 if (error != null)
274 {
275 break;
276 }
278 if (httpListenerContext2.error == null)
279 {
280 goto Block_2;
281 }
282 }
283 int err_status = httpListenerContext.err_status;
284 this.SendError(error, err_status);
285 int num = 1;
286 this.Close(num != 0);
287 return;
288 Block_2:
289 bool flag2 = this.epl.BindContext(httpListenerContext2);
290 HttpListenerContext httpListenerContext3 = this.context;
291 HttpListener httpListener = this.last_listener;
292 HttpListener listener = httpListenerContext3.Listener;
293 this.RemoveConnection();
294 Hashtable connections = listener.connections;
295 HttpListenerContext httpListenerContext4 = this.context;
296 this.last_listener = listener;
297 int num2 = 1;
299 listener.RegisterContext(httpListenerContext4);
300 return;
301 IL_0154:
302 this.CloseSocket();
303 this.Unbind();
304 }
class f__AnonymousType0<< Count > j__TPar
bool BindContext(HttpListenerContext context)
HttpListenerContext context
bool ProcessInput(MemoryStream ms)

References System.array, System.Net.EndPointListener.BindContext(), System.Net.HttpConnection.buffer, System.Net.HttpConnection.Close(), System.Net.HttpConnection.CloseSocket(), System.Net.HttpListener.connections, System.Net.HttpConnection.context, System.Net.HttpConnection.epl, System.Net.HttpListenerContext.err_status, System.Net.HttpListenerContext.error, j__TPar, System.Net.HttpConnection.last_listener, System.Net.HttpConnection.ms, System.Net.HttpConnection.ProcessInput(), System.Net.HttpListener.RegisterContext(), System.Net.HttpConnection.RemoveConnection(), System.Net.HttpConnection.SendError(), System.Net.HttpConnection.stream, System.Net.HttpConnection.timer, and System.Net.HttpConnection.Unbind().