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

◆ GetAddressSize()

static int System.Net.Sockets.Socket.GetAddressSize ( EndPoint endPoint)
inlinestaticpackage

Definition at line 3215 of file Socket.cs.

3216 {
3217 return endPoint.AddressFamily switch
3218 {
3219 AddressFamily.InterNetworkV6 => 28,
3220 AddressFamily.InterNetwork => 16,
3221 _ => endPoint.Serialize().Size,
3222 };
3223 }

Referenced by System.Net.Sockets.SocketAsyncEventArgs.StartOperationAccept().