1
2zero(n)                                                                zero(n)
3
4
5

NAME

7       zero - Create and manipulate zero channels
8

SYNOPSIS

10       package require Tcl
11
12       package require memchan
13
14       zero
15
16

DESCRIPTION

18       The command described here is only available in a not-yet released ver‐
19       sion of the package. Use the CVS to get the sources.
20
21       zero   creates a zero channel which absorbs everything written into it.
22              Reading  from a zero channel will return the requested number of
23              null bytes. These channels are essentially Tcl-specific variants
24              of  the  zero  device for unixoid operating systems (/dev/zero).
25              Transfering the generated channel between interpreters is possi‐
26              ble but does not make much sense.
27

OPTIONS

29       Memory channels created by zero provide one additional option to set or
30       query.
31
32       -delay ?milliseconds?
33              A zero channel is always writable and readable. This means  that
34              all fileevent-handlers will fire continuously.  To avoid starva‐
35              tion of other event sources the events raised  by  this  channel
36              type  have a configurable delay. This option is set in millisec‐
37              onds and defaults to 5.
38

SEE ALSO

40       memchan, fifo, fifo2, null, random
41

KEYWORDS

43       zero, null, in-memory channel, channel, i/o
44
46       Copyright (c) 2004 Pat Thoyts <patthoyts@users.sourceforge.net>
47
48
49
50Memory channels                       2.2                              zero(n)
Impressum