Create Peer to Peer Stream

Links a writer and reader and creates a stream between them.

1378

Inputs/Outputs

datatype_icon

writer

The device resource that writes data to the stream.

datatype_icon

reader

The device resource that reads data from the stream.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

enable stream

A Boolean control that prepares the stream to transmit data.

True Prepares the stream to transmit data.
False Waits to enable the stream until Enable Peer to Peer Stream is called.

Default value: True

Enabling the Stream Programmatically

To enable the stream when the writer and reader are ready to transfer data, set enable stream to False and use Enable Peer to Peer Stream to enable the stream.

datatype_icon

session out

A reference to the stream.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior