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