25 references to AddressFamily
System.Net.Requests (2)
System\Net\FtpControlStream.cs (2)
1168
Socket socket = new Socket(templateSocket.
AddressFamily
, templateSocket.SocketType, templateSocket.ProtocolType);
1169
if (templateSocket.
AddressFamily
== AddressFamily.InterNetworkV6 && templateSocket.DualMode)
System.Net.Sockets (23)
System\Net\Sockets\Socket.cs (10)
748
if (
AddressFamily
!= AddressFamily.InterNetworkV6)
760
if (
AddressFamily
!= AddressFamily.InterNetworkV6)
775
return
AddressFamily
== AddressFamily.InterNetworkV6 && DualMode;
1738
/// <exception cref="ArgumentException">The <see cref="
AddressFamily
"/> of the <see cref="EndPoint"/> used in
1740
/// needs to match the <see cref="
AddressFamily
"/> of the <see cref="EndPoint"/> used in SendTo.</exception>
1821
SocketAddress socketAddress = new SocketAddress(
AddressFamily
);
1864
else if (
AddressFamily
== AddressFamily.InterNetworkV6 && socketAddress.Family == AddressFamily.InterNetwork)
1945
SocketAddress socketAddress = new SocketAddress(
AddressFamily
);
2022
if (receivedAddress.Size < SocketAddress.GetMaximumAddressSize(
AddressFamily
))
3119
e._socketAddress ??= new SocketAddress(
AddressFamily
);
System\Net\Sockets\Socket.Tasks.cs (4)
417
saea._socketAddress = new SocketAddress(
AddressFamily
);
418
if (remoteEndPoint!.AddressFamily !=
AddressFamily
&&
AddressFamily
== AddressFamily.InterNetworkV6 && IsDualMode)
439
if (receivedAddress.Size < SocketAddress.GetMaximumAddressSize(
AddressFamily
))
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
203
Socket.GetIPProtocolInformation(socket.
AddressFamily
, _socketAddress!, out isIPv4, out isIPv6);
System\Net\Sockets\SocketPal.Unix.cs (3)
37
if (!SupportsDualModeIPv4PacketInfo && socket.
AddressFamily
== AddressFamily.InterNetworkV6 && socket.DualMode)
1309
Socket.GetIPProtocolInformation(socket.
AddressFamily
, socketAddress, out isIPv4, out isIPv6);
1335
Socket.GetIPProtocolInformation(socket.
AddressFamily
, socketAddress, out isIPv4, out isIPv6);
System\Net\Sockets\TCPClient.cs (5)
101
_family = _clientSocket?.
AddressFamily
?? AddressFamily.Unknown;
137
_family = Client.
AddressFamily
;
169
_family = Client.
AddressFamily
;
180
_family = Client.
AddressFamily
;
378
if (_clientSocket.
AddressFamily
== AddressFamily.InterNetwork)