fifo - Create and manipulate u-turn fifo channels
SYNOPSIS
package require Tcl
package require memchan
|
Memory channels created by fifo provide two read-only options which can be queried via the standard fconfigure command. These are
As the channels generated by fifo grow as necessary they are always writable. This means that a writable fileevent-handler will fire continuously.
The channels are also readable if they contain more than zero
bytes. Under this conditions a readable fileevent-handler will
fire continuously.
One possible application of memory channels created by memchan
or fifo is as temporay storage device to collect data coming in
over a pipe or a socket. If part of the processing of the incoming
data is to read and process header bytes or similar fifo are easier to
use as they do not require seeking back and forth to switch between
the assimilation of headers at the beginning and writing new data at
the end.
NOTES
SEE ALSO
memchan, fifo2, null
KEYWORDS
fifo, stream, memchan, in-memory channel, channel, i/o
COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>