StreamSocket.Control | control property

Applies to Windows and Windows Phone

Gets socket control data on a StreamSocket object.

Syntax


var control = streamSocket.control;

Property value

Type: StreamSocketControl

Socket control data on a StreamSocket object.

Remarks

The Control property gets the StreamSocketControl instance associated with a StreamSocket object.

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

Any changes to the property values on the StreamSocketControl must be set before the StreamSocket is connected. As a result if you need to make changes to the IgnorableServerCertificateErrors, KeepAlive, NoDelay, OutboundBufferSizeInBytes , OutboundUnicastHopLimit, or QualityOfService properties, then these changes must occur before a successful call to one of the ConnectAsync methods on the StreamSocket.

Requirements

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

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

Other resources
How to use advanced socket controls
Reference
IgnorableServerCertificateErrors
KeepAlive
NoDelay
OutboundBufferSizeInBytes
OutboundUnicastHopLimit
QualityOfService
StreamSocket
StreamSocketControl

 

 

Show:
© 2014 Microsoft