DnssdServiceInstance.RegisterStreamSocketListenerAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterStreamSocketListenerAsync(StreamSocketListener) |
Asynchronously registers a stream (TCP) socket listener for the service, on the given socket. |
RegisterStreamSocketListenerAsync(StreamSocketListener, NetworkAdapter) |
Asynchronously registers a stream (TCP) socket listener for the service, on the given socket and network adapter. |
RegisterStreamSocketListenerAsync(StreamSocketListener)
Asynchronously registers a stream (TCP) socket listener for the service, on the given socket.
public:
virtual IAsyncOperation<DnssdRegistrationResult ^> ^ RegisterStreamSocketListenerAsync(StreamSocketListener ^ socket) = RegisterStreamSocketListenerAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterStreamSocketListenerAsync1")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DnssdRegistrationResult> RegisterStreamSocketListenerAsync(StreamSocketListener const& socket);
[Windows.Foundation.Metadata.Overload("RegisterStreamSocketListenerAsync1")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DnssdRegistrationResult> RegisterStreamSocketListenerAsync(StreamSocketListener socket);
function registerStreamSocketListenerAsync(socket)
Public Function RegisterStreamSocketListenerAsync (socket As StreamSocketListener) As IAsyncOperation(Of DnssdRegistrationResult)
Parameters
- socket
- StreamSocketListener
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
RegisterStreamSocketListenerAsync(StreamSocketListener, NetworkAdapter)
Asynchronously registers a stream (TCP) socket listener for the service, on the given socket and network adapter.
public:
virtual IAsyncOperation<DnssdRegistrationResult ^> ^ RegisterStreamSocketListenerAsync(StreamSocketListener ^ socket, NetworkAdapter ^ adapter) = RegisterStreamSocketListenerAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterStreamSocketListenerAsync2")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DnssdRegistrationResult> RegisterStreamSocketListenerAsync(StreamSocketListener const& socket, NetworkAdapter const& adapter);
[Windows.Foundation.Metadata.Overload("RegisterStreamSocketListenerAsync2")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DnssdRegistrationResult> RegisterStreamSocketListenerAsync(StreamSocketListener socket, NetworkAdapter adapter);
function registerStreamSocketListenerAsync(socket, adapter)
Public Function RegisterStreamSocketListenerAsync (socket As StreamSocketListener, adapter As NetworkAdapter) As IAsyncOperation(Of DnssdRegistrationResult)
Parameters
- socket
- StreamSocketListener
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