47 references to UdpUtility
System.ServiceModel.Channels (47)
System\ServiceModel\Channels\UdpChannelBase.cs (2)
151message = UdpUtility.DecodeMessage( 209this.EnqueueAndDispatch(UdpUtility.WrapAsyncException(ex), null, false);
System\ServiceModel\Channels\UdpChannelFactory.cs (12)
38this.messageEncoderFactory = UdpUtility.GetEncoder(context); 43UdpUtility.ValidateDuplicateDetectionAndRetransmittionSupport(this.messageEncoderFactory, retransmissionEnabled, duplicateDetectionEnabled); 94if (!UdpUtility.IsSupportedHostNameType(via.HostNameType)) 160UdpUtility.ThrowIfNoSocketSupport(); 164UdpUtility.ThrowOnUnsupportedHostNameType(via); 167isMulticast = UdpUtility.IsMulticastAddress(address); 200NetworkInterface[] adapters = UdpUtility.GetMulticastInterfaces(this.udpTransportBindingElement.MulticastInterfaceId); 215if (UdpUtility.TryGetLoopbackInterfaceIndex(adapters[i], localAddress.AddressFamily == AddressFamily.InterNetwork, out interfaceIndex)) 217socketList.Add(UdpUtility.CreateListenSocket(localAddress, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive, 230socketList.Add(UdpUtility.CreateListenSocket(localAddress, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, 242socketList.Add(UdpUtility.CreateListenSocket(localAddress, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, 263UdpSocket socket = UdpUtility.CreateUnicastListenSocket(localAddress, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize,
System\ServiceModel\Channels\UdpChannelListener.cs (24)
67this.messageEncoderFactory = UdpUtility.GetEncoder(context); 69UdpUtility.ValidateDuplicateDetectionAndRetransmittionSupport(this.messageEncoderFactory, this.udpTransportBindingElement.RetransmissionSettings.Enabled, this.udpTransportBindingElement.DuplicateMessageHistoryLength > 0); 182message = UdpUtility.DecodeMessage(this.duplicateDetector, this.messageEncoderFactory.Encoder, 497if (UdpUtility.CanIgnoreServerException(ex)) 503this.channelQueue.EnqueueAndDispatch(UdpUtility.WrapAsyncException(ex), null, false); 515this.listenUri = UdpUtility.AppendRelativePath(listenUriBaseAddress, relativeAddress); 524UdpUtility.CheckSocketSupport(out ipV4, out ipV6); 535UdpUtility.ThrowOnUnsupportedHostNameType(this.listenUri); 539if (UdpUtility.IsMulticastAddress(address)) 544NetworkInterface[] adapters = UdpUtility.GetMulticastInterfaces(udpTransportBindingElement.MulticastInterfaceId); 559if (UdpUtility.TryGetLoopbackInterfaceIndex(adapters[i], address.AddressFamily == AddressFamily.InterNetwork, out interfaceIndex)) 561listenSockets.Add(UdpUtility.CreateListenSocket(address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive, 574listenSockets.Add(UdpUtility.CreateListenSocket(address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, 586listenSockets.Add(UdpUtility.CreateListenSocket(address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, 602this.listenSockets.Add(UdpUtility.CreateUnicastListenSocket(address, ref port, 617port = UdpUtility.CreateListenSocketsOnUniquePort(v4Address, v6Address, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive, out ipv4Socket, out ipv6Socket); 624this.listenSockets.Add(UdpUtility.CreateUnicastListenSocket(v4Address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive)); 625this.listenSockets.Add(UdpUtility.CreateUnicastListenSocket(v6Address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive)); 630this.listenSockets.Add(UdpUtility.CreateUnicastListenSocket(v4Address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive)); 634this.listenSockets.Add(UdpUtility.CreateUnicastListenSocket(v6Address, ref port, this.udpTransportBindingElement.SocketReceiveBufferSize, this.udpTransportBindingElement.TimeToLive)); 656listenUriBaseAddress = UdpUtility.AppendRelativePath(listenUriBaseAddress, relativeAddress); 658this.listenUri = UdpUtility.AppendRelativePath(listenUriBaseAddress, Guid.NewGuid().ToString()); 694if (!UdpUtility.IsSupportedHostNameType(listenUriBase.HostNameType)) 787if (UdpUtility.CanIgnoreServerException(ex))
System\ServiceModel\Channels\UdpOutputChannel.cs (2)
224bool sendingMulticast = UdpUtility.IsMulticastAddress(remoteEndPoint.Address); 895this.IsMulticast = UdpUtility.IsMulticastAddress(this.remoteEndpoint.Address);
System\ServiceModel\Channels\UdpSocket.cs (3)
81UdpUtility.ValidateBufferBounds(buffer, offset, size); 183UdpUtility.ValidateBufferBounds(buffer, offset, size); 201UdpUtility.ValidateBufferBounds(buffer, offset, size);
System\ServiceModel\Channels\UdpSocketReceiveManager.cs (1)
43this.messageBufferSize = UdpUtility.ComputeMessageBufferSize(receiveHandler.MaxReceivedMessageSize);
System\ServiceModel\Channels\UdpUtility.cs (3)
57if (UdpUtility.TryGetSocketError(ex, out error)) 179ipv4Socket = UdpUtility.CreateUnicastListenSocket(ipv4Address, ref port, receiveBufferSize, timeToLive); 180ipv6Socket = UdpUtility.CreateUnicastListenSocket(ipv6Address, ref port, receiveBufferSize, timeToLive);