Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateReceiveFromEndpointAndState()

void System.Net.Sockets.Socket.ValidateReceiveFromEndpointAndState ( EndPoint remoteEndPoint,
string remoteEndPointArgumentName )
inlineprivate

Definition at line 3757 of file Socket.cs.

3758 {
3759 if (remoteEndPoint == null)
3760 {
3761 throw new ArgumentNullException(remoteEndPointArgumentName);
3762 }
3763 if (!CanTryAddressFamily(remoteEndPoint.AddressFamily))
3764 {
3766 }
3767 if (_rightEndPoint == null)
3768 {
3770 }
3771 }
AddressFamily _addressFamily
Definition Socket.cs:555
bool CanTryAddressFamily(AddressFamily family)
Definition Socket.cs:1159
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_sockets_mustbind
Definition SR.cs:60
static string net_InvalidEndPointAddressFamily
Definition SR.cs:38
Definition SR.cs:7

References System.Net.Sockets.Socket._addressFamily, System.Net.Sockets.Socket._rightEndPoint, System.Net.Sockets.Socket.CanTryAddressFamily(), System.SR.Format(), System.SR.net_InvalidEndPointAddressFamily, and System.SR.net_sockets_mustbind.

Referenced by System.Net.Sockets.Socket.BeginReceiveFrom(), System.Net.Sockets.Socket.BeginReceiveMessageFrom(), System.Net.Sockets.Socket.ReceiveFrom(), System.Net.Sockets.Socket.ReceiveFrom(), System.Net.Sockets.Socket.ReceiveFromAsync(), System.Net.Sockets.Socket.ReceiveMessageFrom(), and System.Net.Sockets.Socket.ReceiveMessageFromAsync().