System\ServiceModel\Channels\ExclusiveTcpTransportManager.cs (7)
17IPAddress ipAddress;
23TcpChannelListener channelListener, IPAddress ipAddressAny, UriHostNameType ipHostNameType)
34this.ipAddress = IPAddress.Parse(channelListener.Uri.DnsSafeHost);
45public IPAddress IPAddress
240void ProcessSelection(TcpChannelListener channelListener, IPAddress ipAddressAny, UriHostNameType ipHostNameType,
264this.ProcessSelection(tcpListener, IPAddress.Any, UriHostNameType.IPv4,
269this.ProcessSelection(tcpListener, IPAddress.IPv6Any, UriHostNameType.IPv6,
System\ServiceModel\Channels\PeerIPHelper.cs (50)
22readonly IPAddress listenAddress; // To listen on a single IP address.
23IPAddress[] localAddresses;
45public PeerIPHelper(IPAddress listenAddress)
57this.localAddresses = new IPAddress[0];
73public bool AddressesChanged(ReadOnlyCollection<IPAddress> addresses)
85foreach (IPAddress address in this.localAddresses)
100public static IPAddress CloneAddress(IPAddress source, bool maskScopeId)
102IPAddress clone = null;
111static ReadOnlyCollection<IPAddress> CloneAddresses(IPAddress[] sourceArray)
113IPAddress[] cloneArray = new IPAddress[sourceArray.Length];
118return new ReadOnlyCollection<IPAddress>(cloneArray);
121public static ReadOnlyCollection<IPAddress> CloneAddresses(ReadOnlyCollection<IPAddress> sourceCollection, bool maskScopeId)
123IPAddress[] cloneArray = new IPAddress[sourceCollection.Count];
128return new ReadOnlyCollection<IPAddress>(cloneArray);
132static IPAddress[] CreateAddressArray(IPAddress address)
134IPAddress[] addressArray = new IPAddress[1];
160IPAddress[] GetAddresses()
162List<IPAddress> addresses = new List<IPAddress>();
163List<IPAddress> temporaryAddresses = new List<IPAddress>();
211internal static IPAddress[] ReorderAddresses(IEnumerable<IPAddress> sourceAddresses)
213List<IPAddress> result = new List<IPAddress>();
214List<IPAddress> notAdded = new List<IPAddress>();
217IPAddress v4Address = null, v6Address = null, isatapAddress = null, teredoAddress = null, six2FourAddress = null;
219foreach (IPAddress address in sourceAddresses)
309static AddressType GetAddressType(IPAddress address)
326public static EndpointAddress GetIPEndpointAddress(EndpointAddress epr, IPAddress address)
334public static Uri GetIPUri(Uri uri, IPAddress ipAddress)
350public ReadOnlyCollection<IPAddress> GetLocalAddresses()
367public static bool V4Address(IPAddress address)
372public static bool V6Address(IPAddress address)
378public static bool ValidAddress(IPAddress address)
414IPAddress[] newAddresses = GetAddresses();
417if (AddressesChanged(Array.AsReadOnly<IPAddress>(newAddresses)))
452public ReadOnlyCollection<IPAddress> SortAddresses(ReadOnlyCollection<IPAddress> addresses)
454ReadOnlyCollection<IPAddress> sortedAddresses = SocketAddressList.SortAddresses(this.ipv6Socket, listenAddress, addresses);
462foreach (IPAddress address in sortedAddresses)
472foreach (IPAddress address in sortedAddresses)
System\ServiceModel\Configuration\Properties.cs (2)
2266properties.Add(new ConfigurationProperty("listenIPAddress", typeof(System.Net.IPAddress), null, new System.ServiceModel.Configuration.PeerTransportListenAddressConverter(), new System.ServiceModel.Configuration.PeerTransportListenAddressValidator(), System.Configuration.ConfigurationPropertyOptions.None));
2600properties.Add(new ConfigurationProperty("listenIPAddress", typeof(System.Net.IPAddress), null, new System.ServiceModel.Configuration.PeerTransportListenAddressConverter(), new System.ServiceModel.Configuration.PeerTransportListenAddressValidator(), System.Configuration.ConfigurationPropertyOptions.None));