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

◆ EndReceiveMessageFrom()

int System.Net.Sockets.Socket.EndReceiveMessageFrom ( IAsyncResult asyncResult,
ref SocketFlags socketFlags,
ref EndPoint endPoint,
out IPPacketInformation ipPacketInformation )
inline

Definition at line 2628 of file Socket.cs.

2629 {
2631 if (endPoint == null)
2632 {
2633 throw new ArgumentNullException("endPoint");
2634 }
2635 if (!CanTryAddressFamily(endPoint.AddressFamily))
2636 {
2638 }
2639 SocketReceiveMessageFromResult socketReceiveMessageFromResult = System.Threading.Tasks.TaskToApm.End<SocketReceiveMessageFromResult>(asyncResult);
2640 if (!endPoint.Equals(socketReceiveMessageFromResult.RemoteEndPoint))
2641 {
2643 }
2646 return socketReceiveMessageFromResult.ReceivedBytes;
2647 }
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_InvalidEndPointAddressFamily
Definition SR.cs:38
Definition SR.cs:7
static void End(IAsyncResult asyncResult)
Definition TaskToApm.cs:48

References System.Net.Sockets.Socket._addressFamily, System.asyncResult, System.Net.Sockets.Socket.CanTryAddressFamily(), System.Threading.Tasks.TaskToApm.End(), System.SR.Format(), System.SR.net_InvalidEndPointAddressFamily, and System.Net.Sockets.Socket.ThrowIfDisposed().