UdpSingleSourceMulticastClient UdpSingleSourceMulticastClient UdpSingleSourceMulticastClient UdpSingleSourceMulticastClient Class

定義

警告

此 API 現已淘汰。

單一來源的多點流量的用戶端接收器,也稱為特定來源多點傳送 (SSM,Source Specific Multicast)。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
繼承
UdpSingleSourceMulticastClientUdpSingleSourceMulticastClientUdpSingleSourceMulticastClientUdpSingleSourceMulticastClient
屬性
實作

備註

必須知道的多點傳送的群組位址和寄件者來源位址。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(IPAddress, IPAddress, Int32) UdpSingleSourceMulticastClient(IPAddress, IPAddress, Int32) 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 ReceiveBufferSize ReceiveBufferSize 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 SendBufferSize SendBufferSize 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) BeginJoinGroup(AsyncCallback, Object) BeginJoinGroup(AsyncCallback, Object) 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) BeginReceiveFromSource(Byte[], Int32, Int32, AsyncCallback, Object) BeginReceiveFromSource(Byte[], Int32, Int32, AsyncCallback, Object) 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) BeginSendToSource(Byte[], Int32, Int32, Int32, AsyncCallback, Object) BeginSendToSource(Byte[], Int32, Int32, Int32, AsyncCallback, Object) BeginSendToSource(Byte[], Int32, Int32, Int32, AsyncCallback, Object)

開始將單點傳播封包傳送到先前指定來源的作業。Begins the operation of sending a unicast packet to the source previously specified.

Dispose() Dispose() Dispose() 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) EndJoinGroup(IAsyncResult) EndJoinGroup(IAsyncResult) EndJoinGroup(IAsyncResult)

完成對多點傳送群組的非同步加入群組作業。Completes the asynchronous join group operation to a multicast group.

EndReceiveFromSource(IAsyncResult, Int32) EndReceiveFromSource(IAsyncResult, Int32) EndReceiveFromSource(IAsyncResult, Int32) EndReceiveFromSource(IAsyncResult, Int32)

完成從已聯結之多點傳送群組接收封包的非同步作業,並提供接收到的資訊。Completes the asynchronous operation of receiving a packet from the joined multicast group and provides the information received.

EndSendToSource(IAsyncResult) EndSendToSource(IAsyncResult) EndSendToSource(IAsyncResult) EndSendToSource(IAsyncResult)

完成傳送單點傳播封包至單一來源的作業。Completes the operation of sending a unicast packet to a single source.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於