Megosztás a következőn keresztül:


DnssdServiceInstance.RegisterDatagramSocketAsync Method

Definition

Overloads

RegisterDatagramSocketAsync(DatagramSocket)

Asynchronously registers a datagram (UDP) socket listener for the service, on a given socket.

RegisterDatagramSocketAsync(DatagramSocket, NetworkAdapter)

Asynchronously registers a datagram (UDP) socket listener for the service, on a given socket and network adapter.

RegisterDatagramSocketAsync(DatagramSocket)

Asynchronously registers a datagram (UDP) socket listener for the service, on a given socket.

public:
 virtual IAsyncOperation<DnssdRegistrationResult ^> ^ RegisterDatagramSocketAsync(DatagramSocket ^ socket) = RegisterDatagramSocketAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterDatagramSocketAsync1")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DnssdRegistrationResult> RegisterDatagramSocketAsync(DatagramSocket const& socket);
[Windows.Foundation.Metadata.Overload("RegisterDatagramSocketAsync1")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DnssdRegistrationResult> RegisterDatagramSocketAsync(DatagramSocket socket);
function registerDatagramSocketAsync(socket)
Public Function RegisterDatagramSocketAsync (socket As DatagramSocket) As IAsyncOperation(Of DnssdRegistrationResult)

Parameters

socket
DatagramSocket

Describes the socket that this service instance uses to listen for new service clients.

Returns

On successful completion of the asynchronous operation, returns an object describing the results of registration.

Attributes

See also

Applies to

RegisterDatagramSocketAsync(DatagramSocket, NetworkAdapter)

Asynchronously registers a datagram (UDP) socket listener for the service, on a given socket and network adapter.

public:
 virtual IAsyncOperation<DnssdRegistrationResult ^> ^ RegisterDatagramSocketAsync(DatagramSocket ^ socket, NetworkAdapter ^ adapter) = RegisterDatagramSocketAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterDatagramSocketAsync2")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DnssdRegistrationResult> RegisterDatagramSocketAsync(DatagramSocket const& socket, NetworkAdapter const& adapter);
[Windows.Foundation.Metadata.Overload("RegisterDatagramSocketAsync2")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DnssdRegistrationResult> RegisterDatagramSocketAsync(DatagramSocket socket, NetworkAdapter adapter);
function registerDatagramSocketAsync(socket, adapter)
Public Function RegisterDatagramSocketAsync (socket As DatagramSocket, adapter As NetworkAdapter) As IAsyncOperation(Of DnssdRegistrationResult)

Parameters

socket
DatagramSocket

Describes the socket that this service instance uses to listen for new service clients.

adapter
NetworkAdapter

Specifies the network adapter this service uses to listen for new service clients.

Returns

On successful completion of the asynchronous operation, returns an object describing the results of registration.

Attributes

See also

Applies to