Memory channels 2.1 -- fifo(n)
fifo - Create and manipulate u-turn fifo channels
SYNOPSISpackage 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.
SEE ALSOmemchan, fifo2, null
KEYWORDSfifo, stream, memchan, in-memory channel, channel, i/o
|Last updated @ Mon Jan 20 14:15:59 PST 2003|
|Andreas Kupries||Last update at Mon Jan 20 14:21:49 PST 2003|