[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
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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets socket control data on an IStreamSocket object. | |
| Read-only | Gets socket information on an IStreamSocket object. | |
| Read-only | Gets the input stream to read from the remote host on an IStreamSocket object. | |
| Read-only | Gets 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 |
|
|
Metadata |
|
|
DLL |
|
See also
Build date: 3/7/2012
