Version 7 of memchan

Updated 2004-12-10 18:07:32

This package is currently hosted on SourceForge [L1 ]. Its homepage is http://memchan.sourceforge.net/ This package is part of the ActiveTcl Batteries Included distribution.

It provides several new channel types whose instances store the transfered information in memory and do not go to the OS at all.

Channel types

  • memchan Read and write a memory buffer via a channel.
  • fifo A fifo buffer presented as a channel
  • fifo2 Creates a pair of channels with a fifo connecting them
  • null Like the unix null device, discards everything and returns eof on read.
  • zero Like the unix zero device. Discards all writes and reads return all zeros.
  • random Like the unix random device. Writing seeds an ISAAC pseudo-random number generator. Reading returns random bytes from the generator.

 What: memchan
 Where: http://memchan.sourceforge.net/ >
        http://www.purl.org/NET/akupries/soft/memchan/
 Description: A new channel type for Tcl 8's channel system.  Memory channels
        conform to the same interface as files and sockets, but the data
        is stored in memory rather than in files.  They are good for
        long dynamic strings and passing large quantities of data.
        Supports Window and Unix.  See the web page for pointers to the
        source and binary downloads.
        Currently at version 2.2.1
 Updated: 03-Dec-2004
 Contact: mailto:[email protected] (Andreas Kupries)
          mailto:[email protected] (Pat Thoyts)

Extensions for Tcl and Tk links to many more interesting extensions to Tcl.


Andreas Kupries [ Category Package | ]