UdpSingleSourceMulticastClient 类

定义

警告

此 API 现已过时。

一个从单一源接收多播流量的客户端,亦称为源特定多播 (SSM)。A client receiver for multicast traffic from a single source, also known as Source Specific Multicast (SSM).

public ref class UdpSingleSourceMulticastClient : IDisposable
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public class UdpSingleSourceMulticastClient : IDisposable
type UdpSingleSourceMulticastClient = class
    interface IDisposable
Public Class UdpSingleSourceMulticastClient
Implements IDisposable
继承
UdpSingleSourceMulticastClient
属性
实现

注解

多路广播组地址和发件人源地址必须是已知的。The multicast group address and sender source address must be known.

除了从特定发件人接收多播数据外, UdpSingleSourceMulticastClient客户端还可以将单播数据发送回发送方。In addition to receiving multicast data from a specific sender, the UdpSingleSourceMulticastClient client can also send unicast data back to the sender.

若要从多个源接收多播,或在未提前知道源的情况下UdpSingleSourceMulticastClient使用类,请改用类。To receive multicast from multiple sources, or when the sources aren't known in advance, use the UdpSingleSourceMulticastClient class instead.

构造函数

UdpSingleSourceMulticastClient(IPAddress, IPAddress, Int32)

创建一个可以订阅组地址并从单一源接收数据报的新 UdpSingleSourceMulticastClient UDP 客户端。Creates a new UdpSingleSourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from a single source.

属性

ReceiveBufferSize

获取或设置 Socket 的接收缓冲区的大小(以字节为单位),该缓冲区用于此 UdpSingleSourceMulticastClient 实例上的多播接收操作。Gets or sets the size, in bytes, of the receive buffer of the Socket used for multicast receive operations on this UdpSingleSourceMulticastClient instance.

SendBufferSize

获取或设置 Socket 的发送缓冲区的大小(以字节为单位),该缓冲区用于此 UdpSingleSourceMulticastClient 实例上的多播发送操作。Gets or sets the size, in bytes, of the send buffer of the Socket used for multicast send operations on this UdpSingleSourceMulticastClient instance.

方法

BeginJoinGroup(AsyncCallback, Object)

绑定套接字并开始多播组的联接操作,以便允许接收来自单个源地址的数据报。Binds the socket and begins a join operation to the multicast group to allow datagrams to be received from a single source address.

BeginReceiveFromSource(Byte[], Int32, Int32, AsyncCallback, Object)

开始执行从已联接的多播组接收数据包的操作,并在来自指定发送器的数据包到达组时调用指定的回叫。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.

BeginSendToSource(Byte[], Int32, Int32, Int32, AsyncCallback, Object)

开始执行向之前指定的源发送单播数据包的操作。Begins the operation of sending a unicast packet to the source previously specified.

Dispose()

离开多播组并释放 UdpSingleSourceMulticastClient 类和基础 Socket 的当前实例所使用的所有资源。Leaves the multicast group and releases all resources used by the current instance of the UdpSingleSourceMulticastClient class and the underlying the Socket.

EndJoinGroup(IAsyncResult)

完成多播组的异步联接组操作。Completes the asynchronous join group operation to a multicast group.

EndReceiveFromSource(IAsyncResult, Int32)

完成从已联接的多播组接收数据包的异步操作并提供接收到的信息。Completes the asynchronous operation of receiving a packet from the joined multicast group and provides the information received.

EndSendToSource(IAsyncResult)

完成向单个源发送单播数据包的操作。Completes the operation of sending a unicast packet to a single source.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于