UdpAnySourceMulticastClient UdpAnySourceMulticastClient UdpAnySourceMulticastClient UdpAnySourceMulticastClient Class

定義

警告

此 API 現已淘汰。

任何來源的多點流量的用戶端接收器,也稱為任意來源多點傳送 (ASM,Any Source Multicast) 或網路標準多點傳送 (ISM,Internet Standard Multicast)。A client receiver for multicast traffic from any source, also known as Any Source Multicast (ASM) or Internet Standard Multicast (ISM).

public ref class UdpAnySourceMulticastClient : IDisposable
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public class UdpAnySourceMulticastClient : IDisposable
type UdpAnySourceMulticastClient = class
    interface IDisposable
Public Class UdpAnySourceMulticastClient
Implements IDisposable
繼承
UdpAnySourceMulticastClientUdpAnySourceMulticastClientUdpAnySourceMulticastClientUdpAnySourceMulticastClient
屬性
實作

建構函式

UdpAnySourceMulticastClient(IPAddress, Int32) UdpAnySourceMulticastClient(IPAddress, Int32) UdpAnySourceMulticastClient(IPAddress, Int32) UdpAnySourceMulticastClient(IPAddress, Int32)

建立新的 UdpAnySourceMulticastClient UDP 用戶端,用於訂閱群組位址和接收來自任意來源的資料包。Creates a new UdpAnySourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from any source.

屬性

MulticastLoopback MulticastLoopback MulticastLoopback MulticastLoopback

取得或設定值,指定輸出多點傳送封包是否會傳遞至傳送應用程式。Gets or sets a value that specifies whether outgoing multicast packets are delivered to the sending application.

ReceiveBufferSize ReceiveBufferSize ReceiveBufferSize ReceiveBufferSize

取得或設定 Socket 的接收緩衝區大小 (以位元組為單位),用於這個 UdpAnySourceMulticastClient 執行個體上多點傳送的接收作業。Gets or sets the size, in bytes, of the receive buffer of the Socket used for multicast receive operations on this UdpAnySourceMulticastClient instance.

SendBufferSize SendBufferSize SendBufferSize SendBufferSize

取得或設定 Socket 的傳送緩衝區大小 (以位元組為單位),用於這個 UdpAnySourceMulticastClient 執行個體上多點傳送的傳送作業。Gets or sets the size, in bytes, of the send buffer of the Socket used for multicast send operations on this UdpAnySourceMulticastClient 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 any group participant.

BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object) BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object) BeginReceiveFromGroup(Byte[], Int32, Int32, AsyncCallback, Object) BeginReceiveFromGroup(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 any sender.

BeginSendTo(Byte[], Int32, Int32, IPEndPoint, AsyncCallback, Object) BeginSendTo(Byte[], Int32, Int32, IPEndPoint, AsyncCallback, Object) BeginSendTo(Byte[], Int32, Int32, IPEndPoint, AsyncCallback, Object) BeginSendTo(Byte[], Int32, Int32, IPEndPoint, AsyncCallback, Object)

開始將單點傳播封包傳送至指定目的地的作業。Begins the operation of sending a unicast packet to the specified destination.

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

開始將封包傳送至已加入的多點傳送群組之作業,並在封包傳送至群組時,叫用指定的回呼。Begins the operation of sending a packet to a joined multicast group and invokes the specified callback when a packet has been sent to the group.

BlockSource(IPAddress) BlockSource(IPAddress) BlockSource(IPAddress) BlockSource(IPAddress)

封鎖來源,這樣就不會再收到源自它的多點傳送封包。Blocks a source so that multicast packets originating from it are no longer received.

Dispose() Dispose() Dispose() Dispose()

離開多點傳送群組,並釋出目前的 UdpAnySourceMulticastClient 類別執行個體和基礎 Socket 使用的所有資源。Leaves the multicast group and releases all resources used by the current instance of the UdpAnySourceMulticastClient class and the underlying the Socket.

EndJoinGroup(IAsyncResult) EndJoinGroup(IAsyncResult) EndJoinGroup(IAsyncResult) EndJoinGroup(IAsyncResult)

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

EndReceiveFromGroup(IAsyncResult, IPEndPoint) EndReceiveFromGroup(IAsyncResult, IPEndPoint) EndReceiveFromGroup(IAsyncResult, IPEndPoint) EndReceiveFromGroup(IAsyncResult, IPEndPoint)

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

EndSendTo(IAsyncResult) EndSendTo(IAsyncResult) EndSendTo(IAsyncResult) EndSendTo(IAsyncResult)

完成傳送單點傳播封包至指定目的地的作業。Completes the operation of sending a unicast packet to the specified destination.

EndSendToGroup(IAsyncResult) EndSendToGroup(IAsyncResult) EndSendToGroup(IAsyncResult) EndSendToGroup(IAsyncResult)

完成將封包傳送至多點傳送群組的作業。Completes the operation of sending a packet to a multicast group.

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)
UnblockSource(IPAddress) UnblockSource(IPAddress) UnblockSource(IPAddress) UnblockSource(IPAddress)

解除封鎖先前呼叫 BlockSource(IPAddress) 方法所封鎖的來源,以便可接收源自此來源的多點傳送封包。Unblocks a source that was previously blocked by a call to the BlockSource(IPAddress) method so that multicast packets originating from it can be received.

適用於