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

NAME

8       zero - Create and manipulate zero channels
9

SYNOPSIS

11       package require Tcl
12
13       package require memchan
14
15       zero
16
17______________________________________________________________________________
18

DESCRIPTION

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

OPTIONS

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

SEE ALSO

42       fifo, fifo2, memchan, null, random
43

KEYWORDS

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