StreamSocketInformation Class

Definition

Provides socket information on a StreamSocket object.

public ref class StreamSocketInformation sealed
class StreamSocketInformation sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.DualApiPartition(version=100794368)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StreamSocketInformation
Public NotInheritable Class StreamSocketInformation
Inheritance
StreamSocketInformation
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
bluetooth.rfcomm ID_CAP_NETWORKING [Windows Phone]

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.

Properties

BandwidthStatistics

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

Note that the returned statistics are based on extended TCP statistics, which are enabled by default on Client versions of Windows, but disabled by default for performance reasons on Server versions of Windows. If extended TCP statistics are not available, all returned numerical statistics are set to 0, and boolean statistics are set to false.

LocalAddress

Gets the local IP address associated with a StreamSocket object.

LocalPort

Get the TCP port number associated with a StreamSocket.

ProtectionLevel

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

RemoteAddress

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

RemoteHostName

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

RemotePort

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

RemoteServiceName

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

RoundTripTimeStatistics

Gets round trip time information for a StreamSocket object.

Note that the returned statistics are based on extended TCP statistics, which are enabled by default on Client versions of Windows, but disabled by default for performance reasons on Server versions of Windows. If extended TCP statistics are not available, all returned numerical statistics are set to 0, and boolean statistics are set to false.

ServerCertificate

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

ServerCertificateErrors

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

ServerCertificateErrorSeverity

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

ServerIntermediateCertificates

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

SessionKey

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

Applies to

See also