WiFiDirectServiceSession.AddStreamSocketListenerAsync 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.
Adds a StreamSocketListener to the session. Your code creates the StreamSocketListener before calling this method. Associating a socket to the session causes port information to be sent to the remote device(s) in the session. (In terms of this API, a RemotePortAdded event is raised on each remote device in the session, specifying the TCP protocol.) A remote device can use that information to open a socket and connect back to the local machine.
public:
virtual IAsyncAction ^ AddStreamSocketListenerAsync(StreamSocketListener ^ value) = AddStreamSocketListenerAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction AddStreamSocketListenerAsync(StreamSocketListener const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction AddStreamSocketListenerAsync(StreamSocketListener value);
function addStreamSocketListenerAsync(value)
Public Function AddStreamSocketListenerAsync (value As StreamSocketListener) As IAsyncAction
Parameters
- value
- StreamSocketListener
The StreamSocketListener instance to be associated with the session.
Returns
An asynchronous association action. Returns on successful completion of the association.
- Attributes