Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SocketException.cs
Go to the documentation of this file.
5
6namespace System.Net.Sockets;
7
9[TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11{
12 private readonly SocketError _errorCode;
13
14 public override string Message => base.Message;
15
17
18 public override int ErrorCode => base.NativeErrorCode;
19
22 {
23 }
24
30
33 {
34 if (NetEventSource.Log.IsEnabled())
35 {
36 NetEventSource.Info(this, $"{base.NativeErrorCode}:{Message}", ".ctor");
37 }
38 }
39
41 : this(Marshal.GetLastPInvokeError())
42 {
43 }
44
46 {
47 return (int)error;
48 }
49}
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static int GetNativeErrorForSocketError(SocketError error)
SocketException(SocketError socketError)
SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)