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

◆ IsAddressFamilyCompatible()

bool System.Net.Sockets.UdpClient.IsAddressFamilyCompatible ( AddressFamily family)
inlineprivate

Definition at line 161 of file UdpClient.cs.

162 {
163 if (family == _family)
164 {
165 return true;
166 }
167 if (family == AddressFamily.InterNetwork)
168 {
169 if (_family == AddressFamily.InterNetworkV6)
170 {
171 return _clientSocket.DualMode;
172 }
173 return false;
174 }
175 return false;
176 }

References System.Net.Sockets.UdpClient._clientSocket, System.Net.Sockets.UdpClient._family, and System.Net.Sockets.Socket.DualMode.

Referenced by System.Net.Sockets.UdpClient.Connect(), and System.Net.Sockets.UdpClient.GetEndpoint().