This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




fifo2(n)                                                                                            fifo2(n)



____________________________________________________________________________________________________________

NAME
       fifo2 - Create and manipulate pipe fifo channels

SYNOPSIS
       package require Tcl

       package require memchan

       fifo2

____________________________________________________________________________________________________________

DESCRIPTION
       The  command  described  here is only available in a not-yet released version of the package. Use the
       CVS to get the sources.

       fifo2  creates two stream-oriented in-memory channels and returns  their  handles  as  a  two-element
              list.  There  is no restriction on the ultimate size of the channels, they will always grow as
              much as is necessary to accomodate the data written into them.

              In contrast to the channels generated by fifo a pair of channels  created  here  is  connected
              internally  in  such  a way that data written into one channel can be read from the other. All
              data written into them is read in the same order. This also means that the two channels of the
              pair are not seekable.

              The  channels  created  here  can  be  transfered  between interpreters in the same thread and
              between threads. As both channels in the pair can be transfered independently they can be used
              to create a bidirectional connection between two interpreters.


       Memory  channels created by fifo2 provide two read-only options which can be queried via the standard
       fconfigure command. These are

       -rlength
              The value of this option is the number of bytes currently available for reading from the chan-nel. channel.
              nel.

       -wlength
              The value of this option is the number of bytes currently written into the channel.


       Note  that  the  two  lengths  are switched for the channels of a pair. In other words, the number of
       bytes written for one of the channels is the number of bytes readable from the other end.

       As the channels generated by fifo2 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.

SEE ALSO
       fifo, memchan, null

KEYWORDS
       channel, fifo, i/o, in-memory channel, memchan, stream

COPYRIGHT
       Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>




Memory channels                                      2.2                                            fifo2(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...