IStreamSocket interface

Expand
This topic has not yet been rated - Rate this topic

IStreamSocket interface

[This documentation is preliminary and is subject to change.]

Provides an interface for network communication that allows reading and writing using a TCP stream socket.

Syntax


public interface IStreamSocket : IDisposable

Attributes

GuidAttribute("69a22cf3-fc7b-4857-af38-f6e7de6a5b49")
VersionAttribute(NTDDI_WIN8)

Members

The IStreamSocket interface has these types of members:

Methods

The IStreamSocket interface has these methods. It also inherits methods from the Object class.

MethodDescription
ConnectAsync(EndpointPair) Starts an asynchronous operation on an IStreamSocket object to connect to a remote network destination specified as an EndpointPair object.
ConnectAsync(EndpointPair, SocketProtectionLevel) Starts an asynchronous operation on an IStreamSocket object to connect to a remote network destination specified as an EndpointPair object and a SocketProtectionLevel.
ConnectAsync(HostName, String) Starts an asynchronous operation on a IStreamSocket object to connect a remote destination specified by a remote hostname and a remote service name.
ConnectAsync(HostName, String, SocketProtectionLevel) Starts an asynchronous operation on an IStreamSocket object to connect to a remote network destination specified by a remote hostname, a remote service name, and a SocketProtectionLevel.
UpgradeToSslAsync Starts an asynchronous operation to upgrade to use SSL on a IStreamSocket object.

 

Properties

The IStreamSocket interface has these properties.

PropertyAccess typeDescription

Control

Read-onlyGets socket control data on an IStreamSocket object.

Information

Read-onlyGets socket information on an IStreamSocket object.

InputStream

Read-onlyGets the input stream to read from the remote host on an IStreamSocket object.

OutputStream

Read-onlyGets the output stream to write to the remote host on an IStreamSocket object.

 

Remarks

This StreamSocket and ProximityStreamSocket object implement this interface.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

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

Metadata

Windows.winmd

DLL

Windows.Networking.dll

See also

IClosable
ProximityStreamSocket
StreamSocket

 

 

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD