0 out of 1 rated this helpful - Rate this topic

StreamSocketListenerControl class

Provides socket control data on a StreamSocketListener object.

Syntax

Public NotInheritable Class StreamSocketListenerControl  
    Inherits Object

Attributes

DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

Members

The StreamSocketListenerControl class has these types of members:

Methods

The StreamSocketListenerControl class inherits methods from the Object class (C#/VB/C++).

Properties

The StreamSocketListenerControl class has these properties.

PropertyAccess typeDescription

QualityOfService

Read/writeThe quality of service to be set on a StreamSocket object created when a connection is received by the StreamSocketListener object.

 

Remarks

The StreamSocketListenerControl class provides access to advanced socket control data on a StreamSocketListener object. The only control data supported is the QualityOfService property which indicates the quality of service to be set on a StreamSocket object created when a connection is received by the StreamSocketListener object.

A StreamSocketListenerControl object is automatically created with the parent StreamSocketListener object. The StreamSocketListener.Control property provides access to the associated StreamSocketListenerControl object.

The following example creates a StreamSocketListener, and then demonstrates how to set the QualityOfService property to LowLatency. After this is done, the app can bind and listen on the StreamSocketListener.

No code example is currently available or this language may not be supported.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

Other resources
How to use advanced socket controls (Windows Store apps using JavaScript and HTML)
How to use advanced socket controls (Windows Store apps using C#/VB/C++ and XAML)
Reference
Object
StreamSocketListener
StreamSocketListener.Control

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.