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
ServicePoint.cs
Go to the documentation of this file.
1using System;
6
7namespace System.Net
8{
9 // Token: 0x0200026E RID: 622
10 public class ServicePoint
11 {
12 // Token: 0x060010C8 RID: 4296 RVA: 0x00034E88 File Offset: 0x00033088
22
23 // Token: 0x170003C3 RID: 963
24 // (get) Token: 0x060010C9 RID: 4297 RVA: 0x00034EC0 File Offset: 0x000330C0
26 {
28 get
29 {
30 return this.<Key>k__BackingField;
31 }
32 }
33
34 // Token: 0x170003C4 RID: 964
35 // (get) Token: 0x060010CA RID: 4298 RVA: 0x00034ED4 File Offset: 0x000330D4
36 // (set) Token: 0x060010CB RID: 4299 RVA: 0x00034EE8 File Offset: 0x000330E8
38 {
40 get
41 {
42 return this.<Scheduler>k__BackingField;
43 }
45 set
46 {
48 }
49 }
50
51 // Token: 0x170003C5 RID: 965
52 // (get) Token: 0x060010CC RID: 4300 RVA: 0x00034EFC File Offset: 0x000330FC
53 public global::System.Uri Address
54 {
55 get
56 {
57 return this.uri;
58 }
59 }
60
61 // Token: 0x170003C6 RID: 966
62 // (get) Token: 0x060010CD RID: 4301 RVA: 0x00034F10 File Offset: 0x00033110
63 // (set) Token: 0x060010CE RID: 4302 RVA: 0x00034F24 File Offset: 0x00033124
65 {
66 get
67 {
68 return this.endPointCallback;
69 }
70 set
71 {
73 }
74 }
75
76 // Token: 0x170003C7 RID: 967
77 // (get) Token: 0x060010CF RID: 4303 RVA: 0x00034F38 File Offset: 0x00033138
78 // (set) Token: 0x060010D0 RID: 4304 RVA: 0x00034F4C File Offset: 0x0003314C
80 {
81 get
82 {
83 return this.connectionLeaseTimeout;
84 }
85 set
86 {
88 }
89 }
90
91 // Token: 0x170003C8 RID: 968
92 // (get) Token: 0x060010D1 RID: 4305 RVA: 0x00034F60 File Offset: 0x00033160
93 // (set) Token: 0x060010D2 RID: 4306 RVA: 0x00034F74 File Offset: 0x00033174
94 public int ConnectionLimit
95 {
96 get
97 {
98 return this.connectionLimit;
99 }
100 set
101 {
102 if (this.disposed)
103 {
104 return;
105 }
107 }
108 }
109
110 // Token: 0x170003C9 RID: 969
111 // (get) Token: 0x060010D3 RID: 4307 RVA: 0x00034F98 File Offset: 0x00033198
112 public string ConnectionName
113 {
114 get
115 {
116 return this.uri.Scheme;
117 }
118 }
119
120 // Token: 0x170003CA RID: 970
121 // (get) Token: 0x060010D4 RID: 4308 RVA: 0x00034FB0 File Offset: 0x000331B0
123 {
124 get
125 {
126 while (!this.disposed)
127 {
128 }
129 }
130 }
131
132 // Token: 0x170003CB RID: 971
133 // (get) Token: 0x060010D5 RID: 4309 RVA: 0x00034FC8 File Offset: 0x000331C8
135 {
136 get
137 {
138 /*
139An exception occurred when decompiling this method (060010D5)
140
141ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Net.ServicePoint::get_IdleSince()
142
143 ---> System.Exception: Basic block has to end with unconditional control flow.
144{
145 Block_0:
146 brtrue(IL_0000, ldloc:bool(var_0_06))
147}
148
149 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
150 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
151 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
152 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
153 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
154 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
155 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
156 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
157 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
158 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
159 --- End of inner exception stack trace ---
160 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
161 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
162*/;
163 }
164 }
165
166 // Token: 0x170003CC RID: 972
167 // (get) Token: 0x060010D6 RID: 4310 RVA: 0x00034FE4 File Offset: 0x000331E4
168 // (set) Token: 0x060010D7 RID: 4311 RVA: 0x00034FF8 File Offset: 0x000331F8
169 public int MaxIdleTime
170 {
171 get
172 {
173 return this.maxIdleTime;
174 }
175 set
176 {
177 bool flag = this.disposed;
179 if (flag)
180 {
181 return;
182 }
184 }
185 }
186
187 // Token: 0x170003CD RID: 973
188 // (get) Token: 0x060010D8 RID: 4312 RVA: 0x00035024 File Offset: 0x00033224
190 {
191 get
192 {
193 return this.protocolVersion;
194 }
195 }
196
197 // Token: 0x170003CE RID: 974
198 // (get) Token: 0x060010D9 RID: 4313 RVA: 0x00035038 File Offset: 0x00033238
199 // (set) Token: 0x060010DA RID: 4314 RVA: 0x0003504C File Offset: 0x0003324C
201 {
202 get
203 {
204 return this.receiveBufferSize;
205 }
206 set
207 {
209 }
210 }
211
212 // Token: 0x170003CF RID: 975
213 // (get) Token: 0x060010DB RID: 4315 RVA: 0x00035060 File Offset: 0x00033260
215 {
216 get
217 {
218 if (!true)
219 {
220 }
221 Version version = this.protocolVersion;
222 bool flag;
223 return flag;
224 }
225 }
226
227 // Token: 0x170003D0 RID: 976
228 // (get) Token: 0x060010DC RID: 4316 RVA: 0x00035078 File Offset: 0x00033278
229 // (set) Token: 0x060010DD RID: 4317 RVA: 0x0003508C File Offset: 0x0003328C
231 {
232 get
233 {
234 return this.SendContinue;
235 }
236 set
237 {
238 }
239 }
240
241 // Token: 0x170003D1 RID: 977
242 // (get) Token: 0x060010DE RID: 4318 RVA: 0x0003509C File Offset: 0x0003329C
243 // (set) Token: 0x060010DF RID: 4319 RVA: 0x000350B0 File Offset: 0x000332B0
245 {
246 get
247 {
248 return this.useNagle;
249 }
250 set
251 {
252 }
253 }
254
255 // Token: 0x170003D2 RID: 978
256 // (get) Token: 0x060010E0 RID: 4320 RVA: 0x000350C0 File Offset: 0x000332C0
257 // (set) Token: 0x060010E1 RID: 4321 RVA: 0x000350F0 File Offset: 0x000332F0
258 internal bool SendContinue
259 {
260 get
261 {
262 bool flag = this.sendContinue;
263 if (flag)
264 {
265 Version version = this.protocolVersion;
266 return true;
267 }
269 if (!flag)
270 {
271 }
272 bool flag2;
273 return flag2;
274 }
275 set
276 {
277 }
278 }
279
280 // Token: 0x060010E2 RID: 4322 RVA: 0x00035100 File Offset: 0x00033300
286
287 // Token: 0x060010E3 RID: 4323 RVA: 0x0003511C File Offset: 0x0003331C
288 internal void KeepAliveSetup(global::System.Net.Sockets.Socket socket)
289 {
290 if (this.tcp_keepalive)
291 {
292 bool flag = this.tcp_keepalive;
293 int num = this.tcp_keepalive_time;
294 int num2 = this.tcp_keepalive_interval;
295 return;
296 }
297 }
298
299 // Token: 0x060010E4 RID: 4324 RVA: 0x00035148 File Offset: 0x00033348
300 private static void PutBytes(byte[] bytes, uint v, int offset)
301 {
302 if (!true)
303 {
304 }
305 }
306
307 // Token: 0x170003D3 RID: 979
308 // (get) Token: 0x060010E5 RID: 4325 RVA: 0x0003515C File Offset: 0x0003335C
309 // (set) Token: 0x060010E6 RID: 4326 RVA: 0x00035170 File Offset: 0x00033370
310 internal bool UsesProxy
311 {
312 get
313 {
314 return this.usesProxy;
315 }
316 set
317 {
318 }
319 }
320
321 // Token: 0x170003D4 RID: 980
322 // (get) Token: 0x060010E7 RID: 4327 RVA: 0x00035180 File Offset: 0x00033380
323 // (set) Token: 0x060010E8 RID: 4328 RVA: 0x00035194 File Offset: 0x00033394
324 internal bool UseConnect
325 {
326 get
327 {
328 return this.useConnect;
329 }
330 set
331 {
332 }
333 }
334
335 // Token: 0x170003D5 RID: 981
336 // (get) Token: 0x060010E9 RID: 4329 RVA: 0x000351A4 File Offset: 0x000333A4
337 private bool HasTimedOut
338 {
339 get
340 {
341 if (!true)
342 {
343 }
344 if (!true)
345 {
346 }
347 DateTime dateTime = this.lastDnsResolve;
349 DateTime dateTime2 = dateTime + timeSpan;
351 return dateTime2 < utcNow;
352 }
353 }
354
355 // Token: 0x170003D6 RID: 982
356 // (get) Token: 0x060010EA RID: 4330 RVA: 0x000351E0 File Offset: 0x000333E0
358 {
359 get
360 {
361 object obj = this.hostE;
362 long num = 0L;
363 string text = this.uri.Host;
364 global::System.UriHostNameType hostNameType = this.uri.HostNameType;
365 global::System.UriHostNameType hostNameType2 = this.uri.HostNameType;
366 if (this.host == null)
367 {
368 global::System.UriHostNameType hostNameType3 = this.uri.HostNameType;
369 int stringLength = text._stringLength;
370 int num2 = 1;
371 string text2 = text.Substring(num2, (int)num);
373 if (ipaddress != null && ipaddress == null)
374 {
375 throw new ArrayTypeMismatchException();
376 }
378 bool hasTimedOut = this.HasTimedOut;
379 if (this.host == null)
380 {
385 return iphostEntry2;
386 }
387 }
388 long num3 = 0L;
390 if (num3 == 0L)
391 {
392 return this.host;
393 }
394 throw new OutOfMemoryException();
395 }
396 }
397
398 // Token: 0x060010EB RID: 4331 RVA: 0x000352D0 File Offset: 0x000334D0
399 internal void SetVersion(Version version)
400 {
401 this.protocolVersion = version;
402 }
403
404 // Token: 0x060010EC RID: 4332 RVA: 0x000352E4 File Offset: 0x000334E4
405 internal void SendRequest(WebOperation operation, string groupName)
406 {
407 bool flag = this.disposed;
408 if (flag)
409 {
410 if (!flag)
411 {
412 }
413 return;
414 }
415 this.<Scheduler>k__BackingField.SendRequest(operation, groupName);
416 long num = 0L;
417 if (flag)
418 {
419 Monitor.Exit(this);
420 }
421 if (num == 0L)
422 {
423 return;
424 }
425 throw new OutOfMemoryException();
426 }
427
428 // Token: 0x060010ED RID: 4333 RVA: 0x0003533C File Offset: 0x0003353C
430 {
431 bool flag = this.disposed;
432 if (flag)
433 {
434 }
436 long num = 0L;
437 if (flag)
438 {
439 Monitor.Exit(this);
440 }
441 if (num == 0L)
442 {
443 }
444 throw new OutOfMemoryException();
445 }
446
447 // Token: 0x060010EE RID: 4334 RVA: 0x0003538C File Offset: 0x0003358C
448 internal void FreeServicePoint()
449 {
450 this.disposed = true;
451 }
452
453 // Token: 0x170003D7 RID: 983
454 // (get) Token: 0x060010EF RID: 4335 RVA: 0x000353A0 File Offset: 0x000335A0
456 {
457 get
458 {
460 if (serverCertificateOrBytes != null)
461 {
462 Type type;
463 bool flag = serverCertificateOrBytes.GetType() == type;
464 if (serverCertificateOrBytes != null)
465 {
466 throw new InvalidCastException();
467 }
468 }
469 throw new InvalidCastException();
470 }
471 }
472
473 // Token: 0x060010F0 RID: 4336 RVA: 0x000353D4 File Offset: 0x000335D4
474 internal void UpdateServerCertificate(X509Certificate certificate)
475 {
476 if (certificate != null)
477 {
478 return;
479 }
480 long num = 0L;
482 }
483
484 // Token: 0x170003D8 RID: 984
485 // (get) Token: 0x060010F1 RID: 4337 RVA: 0x000353F0 File Offset: 0x000335F0
487 {
488 get
489 {
491 if (clientCertificateOrBytes != null)
492 {
493 Type type;
494 bool flag = clientCertificateOrBytes.GetType() == type;
495 if (clientCertificateOrBytes != null)
496 {
497 throw new InvalidCastException();
498 }
499 }
500 throw new InvalidCastException();
501 }
502 }
503
504 // Token: 0x060010F2 RID: 4338 RVA: 0x00035424 File Offset: 0x00033624
505 internal void UpdateClientCertificate(X509Certificate certificate)
506 {
507 if (certificate != null)
508 {
509 return;
510 }
511 long num = 0L;
513 }
514
515 // Token: 0x060010F3 RID: 4339 RVA: 0x00035440 File Offset: 0x00033640
516 internal bool CallEndPointDelegate(global::System.Net.Sockets.Socket sock, IPEndPoint remote)
517 {
519 if (bindIPEndPoint != null)
520 {
521 IntPtr method_code = bindIPEndPoint.method_code;
522 IntPtr invoke_impl = bindIPEndPoint.invoke_impl;
523 IntPtr method = bindIPEndPoint.method;
524 if (method_code != 0)
525 {
527 }
528 }
529 throw new OverflowException();
530 }
531
532 // Token: 0x060010F4 RID: 4340 RVA: 0x00035494 File Offset: 0x00033694
533 internal ServicePoint()
534 {
535 throw new NotSupportedException();
536 }
537
538 // Token: 0x04000D2C RID: 3372
539 private readonly global::System.Uri uri;
540
541 // Token: 0x04000D2D RID: 3373
543
544 // Token: 0x04000D2E RID: 3374
546
547 // Token: 0x04000D2F RID: 3375
549
550 // Token: 0x04000D30 RID: 3376
551 private bool usesProxy;
552
553 // Token: 0x04000D31 RID: 3377
554 private bool sendContinue;
555
556 // Token: 0x04000D32 RID: 3378
557 private bool useConnect;
558
559 // Token: 0x04000D33 RID: 3379
560 private object hostE;
561
562 // Token: 0x04000D34 RID: 3380
563 private bool useNagle;
564
565 // Token: 0x04000D35 RID: 3381
567
568 // Token: 0x04000D36 RID: 3382
569 private bool tcp_keepalive;
570
571 // Token: 0x04000D37 RID: 3383
573
574 // Token: 0x04000D38 RID: 3384
576
577 // Token: 0x04000D39 RID: 3385
578 private bool disposed;
579
580 // Token: 0x04000D3A RID: 3386
582
583 // Token: 0x04000D3B RID: 3387
584 private int receiveBufferSize;
585
586 // Token: 0x04000D3C RID: 3388
589
590 // Token: 0x04000D3D RID: 3389
592 private ServicePointScheduler <Scheduler>k__BackingField;
593
594 // Token: 0x04000D3E RID: 3390
595 private int connectionLimit;
596
597 // Token: 0x04000D3F RID: 3391
598 private int maxIdleTime;
599
600 // Token: 0x04000D40 RID: 3392
602
603 // Token: 0x04000D41 RID: 3393
605 }
606}
class f__AnonymousType0<< Count > j__TPar
static IPAddress Parse(string ipString)
Definition IPAddress.cs:208
X509Certificate ClientCertificate
virtual Version ProtocolVersion
global::System.Uri Address
bool CloseConnectionGroup(string connectionGroupName)
ServicePointScheduler Scheduler
void UpdateClientCertificate(X509Certificate certificate)
void SetVersion(Version version)
readonly global::System.Uri uri
BindIPEndPoint endPointCallback
readonly ServicePointManager.SPKey< Key > k__BackingField
void KeepAliveSetup(global::System.Net.Sockets.Socket socket)
X509Certificate Certificate
BindIPEndPoint BindIPEndPointDelegate
void UpdateServerCertificate(X509Certificate certificate)
ServicePoint(ServicePointManager.SPKey key, global::System.Uri uri, int connectionLimit, int maxIdleTime)
void SetTcpKeepAlive(bool enabled, int keepAliveTime, int keepAliveInterval)
void SendRequest(WebOperation operation, string groupName)
bool CallEndPointDelegate(global::System.Net.Sockets.Socket sock, IPEndPoint remote)
ServicePointManager.SPKey Key
static void PutBytes(byte[] bytes, uint v, int offset)
ServicePointScheduler< Scheduler > k__BackingField
static void Exit(object obj)
Definition Monitor.cs:47
new Type GetType()
Definition Type.cs:287
string Host
Definition Uri.cs:811
global::System.UriHostNameType HostNameType
Definition Uri.cs:610
string Scheme
Definition Uri.cs:1094
static DateTime UtcNow
Definition DateTime.cs:1318