tcl::chan::halfpipe
In-memory channel, half of a fifo2
- Provided by: tcllib (Version: 1.15-dfsg-2)
- Report a bug
In-memory channel, half of a fifo2
package require Tcl 8.5
package require TclOO
package require tcl::chan::events ?1?
package require tcl::chan::halfpipe ?1?
package require tcl::chan::halfpipe ?1?
::tcl::chan::halfpipe ?-option value...?
objectCmd put bytes
The tcl::chan::halfpipe package provides a command creating one half of a tcl::chan::fifo2 pair. Writing into such a channel invokes a set of callbacks which then handle the data. This is similar to a channel handler, except having a much simpler API.
The internal TclOO class implementing the channel handler is a sub-class of the tcl::chan::events framework.
Two halfpipes with a bit of glue logic in the callbacks make for one tcl::chan::fifo2.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category virtchannel of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation.
callbacks, fifo, in-memory channel, reflected channel, tip 219, virtual channel
Channels
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>