StreamSocketInformation class
TOC
Collapse the table of content
Expand the table of content

StreamSocketInformation class

Provides socket information on a StreamSocket object.

Syntax


Public NotInheritable Class StreamSocketInformation

Members

The StreamSocketInformation class has these types of members:

Properties

The StreamSocketInformation class has these properties.

PropertyAccess typeDescription

BandwidthStatistics

Read-only

Gets bandwidth information for network data transfer on a StreamSocket object.

LocalAddress

Read-only

Gets the local IP address associated with a StreamSocket object.

LocalPort

Read-only

Get the TCP port number associated with a StreamSocket.

ProtectionLevel

Read-only

Gets the protection level that represents the integrity and encryption set on a StreamSocket object.

RemoteAddress

Read-only

Get the IP address or hostname of the remote network destination associated with a StreamSocket object.

RemoteHostName

Read-only

Get the hostname or IP address of the remote network destination associated with a StreamSocket object.

RemotePort

Read-only

Get the TCP port number or service name of the remote network destination associated with a StreamSocket object.

RemoteServiceName

Read-only

Get the service name or TCP port number of the remote network destination associated with a StreamSocket object.

RoundTripTimeStatistics

Read-only

Gets round trip time information for a StreamSocket object.

ServerCertificate

Read-only

Gets the certificate from the server when making an SSL connection with a StreamSocket.

ServerCertificateErrors

Read-only

Gets the list of errors that occurred making an SSL connection with a StreamSocket.

ServerCertificateErrorSeverity

Read-only

Gets the category of an error that occurred making an SSL connection with a StreamSocket.

ServerIntermediateCertificates

Read-only

Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamSocket.

SessionKey

Read-only

Get a byte array that represents the private shared secret exchanged by proximity devices.

 

Remarks

The StreamSocketInformation class provides information about a StreamSocket. This class retrieves information on a StreamSocket and can be called any time after the StreamSocket has been created.

A StreamSocketInformation object is automatically created with the parent StreamSocket object. The StreamSocket.Information property provides access to the associated StreamSocketInformation object.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

bluetooth.rfcomm

Requirements (Windows 8.x and Windows Phone 8.x)

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

Capabilities

ID_CAP_NETWORKING [Windows Phone]
bluetooth.rfcomm

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Other resources
Connecting with sockets (HTML)
Connecting with sockets (XAML)
How to use advanced socket controls (HTML)
How to use advanced socket controls (XAML)
Reference
Object
StreamSocket
StreamSocket.Information
StreamSocket.Control
Samples
ControlChannelTrigger StreamSocket sample
StreamSocket sample

 

 

Show:
© 2016 Microsoft