dp_recv

Syntax

dp_recv chanId

Comments

dp_recv allows one to bypass the Tcl I/O layer and call the channel's receive method directly. There are several problems with Tcl's I/O system because it buffers data internally and it is line or file-based.

dp_recv calls the channel's receive method once and returns the received data.

Examples

set a [dp_recv $chan]