Windows Dev Center

DatagramSocket.OutputStream | outputStream property

Gets the output stream to write to the remote host.

Syntax


var outputStream = datagramSocket.outputStream;

Property value

Type: IOutputStream

A stream of bytes to be written to the remote host in a UDP datagram.

Remarks

This property is often used with the DataWriter object to write outgoing data to be sent to the remote network destination on a socket object.

Every write to the OutputStream results in a network packet being sent.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

DatagramSocket
DataWriter
IOutputStream

 

 

Show:
© 2015 Microsoft