StreamSocketInformation class

Applies to Windows and Windows Phone

Provides socket information on a StreamSocket object.

Syntax


var streamSocketInformation = information;

Attributes

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

Members

The StreamSocketInformation class has these types of members:

Methods

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

Properties

The StreamSocketInformation class has these properties.

PropertyAccess typeDescription

BandwidthStatistics

Read-onlyGets bandwidth information for network data transfer on a StreamSocket object.

LocalAddress

Read-onlyGets the local IP address associated with a StreamSocket object.

LocalPort

Read-onlyGet the TCP port number associated with a StreamSocket.

ProtectionLevel

Read-onlyGets the protection level that represents the integrity and encryption set on a StreamSocket object.

RemoteAddress

Read-onlyGet the IP address or hostname of the remote network destination associated with a StreamSocket object.

RemoteHostName

Read-onlyGet the hostname or IP address of the remote network destination associated with a StreamSocket object.

RemotePort

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

RemoteServiceName

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

RoundTripTimeStatistics

Read-onlyGets round trip time information for a StreamSocket object.

ServerCertificate

Read-onlyGets the certificate from the server when making an SSL connection with a StreamSocket.

ServerCertificateErrors

Read-onlyGets the list of errors that occurred making an SSL connection with a StreamSocket.

ServerCertificateErrorSeverity

Read-onlyGets the category of an error that occurred making an SSL connection with a StreamSocket.

ServerIntermediateCertificates

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

SessionKey

Read-onlyGet 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

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]
bluetooth.rfcomm

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:
© 2014 Microsoft