UdpSingleSourceMulticastClient Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

A client receiver for multicast traffic from a single source, also known as Source Specific Multicast (SSM).

Inheritance Hierarchy

System.Object
  System.Net.Sockets.UdpSingleSourceMulticastClient

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

Syntax

'Declaration
Public Class UdpSingleSourceMulticastClient _
    Implements IDisposable
public class UdpSingleSourceMulticastClient : IDisposable

The UdpSingleSourceMulticastClient type exposes the following members.

Constructors

  Name Description
Public methodSupported by Silverlight for Windows Phone UdpSingleSourceMulticastClient Creates a new UdpSingleSourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from a single source.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone ReceiveBufferSize Gets or sets the size, in bytes, of the receive buffer of the Socket used for multicast receive operations on this UdpSingleSourceMulticastClient instance.
Public propertySupported by Silverlight for Windows Phone SendBufferSize Gets or sets the size, in bytes, of the send buffer of the Socket used for multicast send operations on this UdpSingleSourceMulticastClient instance.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone BeginJoinGroup Binds the socket and begins a join operation to the multicast group to allow datagrams to be received from a single source address.
Public methodSupported by Silverlight for Windows Phone BeginReceiveFromSource Begins the operation of receiving a packet from the joined multicast group and invokes the specified callback when a packet has arrived on the group from a specified sender.
Public methodSupported by Silverlight for Windows Phone BeginSendToSource Begins the operation of sending a unicast packet to the source previously specified.
Public methodSupported by Silverlight for Windows Phone Dispose Leaves the multicast group and releases all resources used by the current instance of the UdpSingleSourceMulticastClient class and the underlying Socket.
Public methodSupported by Silverlight for Windows Phone EndJoinGroup Completes the asynchronous join group operation to a multicast group.
Public methodSupported by Silverlight for Windows Phone EndReceiveFromSource Completes the asynchronous operation of receiving a packet from the joined multicast group and provides the information received from a specified sender.
Public methodSupported by Silverlight for Windows Phone EndSendToSource Completes the operation of sending a unicast packet to a single source.
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)

In Silverlight for Windows Phone, this member is overridden by Finalize().
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The multicast group address and sender source address must be known.

In addition to receiving multicast data from a specific sender, the UdpSingleSourceMulticastClient client can also send unicast data back to the sender.

To receive multicast from multiple sources, or when the sources aren't known in advance, use the UdpAnySourceMulticastClient class instead.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.