Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SocketExceptionFactory.cs
Go to the documentation of this file.
1
using
System.Net.Sockets
;
2
3
namespace
System.Net.Internals
;
4
5
internal
static
class
SocketExceptionFactory
6
{
7
private
sealed
class
ExtendedSocketException
:
SocketException
8
{
9
private
readonly
EndPoint
_endPoint
;
10
11
public
override
string
Message
12
{
13
get
14
{
15
if
(
_endPoint
!=
null
)
16
{
17
return
base.Message +
" "
+
_endPoint
.ToString();
18
}
19
return
base.Message;
20
}
21
}
22
23
public
ExtendedSocketException
(
int
errorCode,
EndPoint
endPoint)
24
: base(errorCode)
25
{
26
_endPoint
= endPoint;
27
}
28
}
29
30
public
static
SocketException
CreateSocketException
(
int
socketError,
EndPoint
endPoint)
31
{
32
return
new
ExtendedSocketException
(socketError, endPoint);
33
}
34
}
System.Net.EndPoint
Definition
EndPoint.cs:6
System.Net.Internals.SocketExceptionFactory.ExtendedSocketException._endPoint
readonly EndPoint _endPoint
Definition
SocketExceptionFactory.cs:9
System.Net.Internals.SocketExceptionFactory.ExtendedSocketException.Message
override string Message
Definition
SocketExceptionFactory.cs:12
System.Net.Internals.SocketExceptionFactory.ExtendedSocketException.ExtendedSocketException
ExtendedSocketException(int errorCode, EndPoint endPoint)
Definition
SocketExceptionFactory.cs:23
System.Net.Internals.SocketExceptionFactory.ExtendedSocketException
Definition
SocketExceptionFactory.cs:8
System.Net.Internals.SocketExceptionFactory.CreateSocketException
static SocketException CreateSocketException(int socketError, EndPoint endPoint)
Definition
SocketExceptionFactory.cs:30
System.Net.Sockets.SocketException
Definition
SocketException.cs:11
System.Net.Internals
Definition
SocketExceptionFactory.cs:3
System.Net.Sockets
Definition
AddressInfoHints.cs:1
source
System.Net.Sockets
System.Net.Internals
SocketExceptionFactory.cs
Generated by
1.10.0