Base:
property
AddressFamily
System.Net.EndPoint.AddressFamily
25 references to AddressFamily
System (9)
net\System\Net\IPEndPoint.cs (2)
140
if (socketAddress.Family != this.
AddressFamily
) {
141
throw new ArgumentException(SR.GetString(SR.net_InvalidAddressFamily, socketAddress.Family.ToString(), this.GetType().FullName, this.
AddressFamily
.ToString()), "socketAddress");
net\System\Net\Sockets\Socket.cs (1)
5884
if (input.
AddressFamily
== AddressFamily.InterNetwork && IsDualMode)
net\System\Net\Sockets\TCPClient.cs (1)
45
m_Family = localEP.
AddressFamily
;
net\System\Net\Sockets\TCPListener.cs (4)
39
m_ServerSocket = new Socket(m_ServerSocketEP.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
58
m_ServerSocket = new Socket(m_ServerSocketEP.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
79
m_ServerSocket = new Socket(m_ServerSocketEP.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
213
m_ServerSocket = new Socket(m_ServerSocketEP.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
net\System\Net\Sockets\UDPClient.cs (1)
129
m_Family = localEP.
AddressFamily
;
System.Net (7)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (1)
374
sin.sin6_family = (ushort)endPoint.
AddressFamily
;
net\PeerToPeer\Collaboration\PeerEndPoint.cs (2)
87
if ((m_endPoint != null) && (m_endPoint.
AddressFamily
!= AddressFamily.InterNetworkV6)){
119
if ((m_endPoint != null) && (m_endPoint.
AddressFamily
!= AddressFamily.InterNetworkV6)){
net\PeerToPeer\SystemNetHelpers.cs (4)
16
byte[] buffer = new byte[ipEndPoint.
AddressFamily
== AddressFamily.InterNetworkV6 ? IPv6AddressSize : IPv4AddressSize];
21
buffer[0] = unchecked((byte)((int)ipEndPoint.
AddressFamily
));
22
buffer[1] = unchecked((byte)((int)ipEndPoint.
AddressFamily
>> 8));
24
if (ipEndPoint.
AddressFamily
== AddressFamily.InterNetworkV6)
System.ServiceModel (5)
System\ServiceModel\Channels\PnrpPeerResolver.cs (2)
1253
if (endpoint.
AddressFamily
== AddressFamily.InterNetwork)
1263
else if (endpoint.
AddressFamily
== AddressFamily.InterNetworkV6)
System\ServiceModel\Channels\SocketConnection.cs (2)
2105
this.listenSocket = new Socket(localEndpoint.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
2107
if (localEndpoint.
AddressFamily
== AddressFamily.InterNetworkV6 && settings.TeredoEnabled)
System\ServiceModel\Channels\TcpChannelListener.cs (1)
314
Socket result = new Socket(localEndpoint.
AddressFamily
, SocketType.Stream, ProtocolType.Tcp);
System.ServiceModel.Channels (4)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (1)
135
if (socket.AddressFamily == remoteEndPoint.
AddressFamily
)
System\ServiceModel\Channels\UdpChannelFactory.cs (2)
188
localAddress = (remoteEndPoint.
AddressFamily
== AddressFamily.InterNetwork ? IPAddress.Loopback : IPAddress.IPv6Loopback);
192
localAddress = (remoteEndPoint.
AddressFamily
== AddressFamily.InterNetwork ? IPAddress.Any : IPAddress.IPv6Any);
System\ServiceModel\Channels\UdpUtility.cs (1)
127
socket = new Socket(localEndpoint.
AddressFamily
, SocketType.Dgram, ProtocolType.Udp);