StreamSocketListener.Control | control property

Gets socket control data on a StreamSocketListener object.

Syntax


var control = streamSocketListener.control;

Property value

Type: StreamSocketListenerControl

Socket control data on a StreamSocketListener object.

Remarks

The Control property gets the StreamSocketListenerControl instance associated with a StreamSocketListener object.

A StreamSocketListenerControl object is automatically created with the parent StreamSocketListener object. The StreamSocketListenerControl instance can then be used to get or set control data used by the StreamSocketListener object. These properties on the StreamSocketControl instance include the following:

Any changes to the StreamSocketListenerControl property values must be set before the StreamSocketListener is bound. So changes to the QualityOfService property must be set before the BindServiceNameAsync or BindEndpointAsync method is called on the StreamSocketListener.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

StreamSocket
StreamSocketListener
StreamSocketListenerControl

 

 

Show:
© 2015 Microsoft