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

NAME

8       null - Create and manipulate null channels
9

SYNOPSIS

11       package require Tcl
12
13       package require memchan
14
15       null
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       null   creates a null channel which absorbs everything written into it.
24              Reading  from  it  is not possible, or rather will always return
25              zero bytes. These channels are essentially Tcl-specific variants
26              of  the  null  device for unixoid operating systems (/dev/null).
27              Transferring the generated channel between interpreters is  pos‐
28              sible but does not make much sense.
29

OPTIONS

31       Memory channels created by null provide one additional option to set or
32       query.
33
34       -delay ?milliseconds?
35              A null 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
41       A null channel is always writable and never readable. This means that a
42       writable  fileevent-handler  will  fire  continuously  and  a  readable
43       fileevent-handler never at all. The exception to the latter is only the
44       destruction  of  the  channel  which  will cause the delivery of an eof
45       event to a readable handler.
46

SEE ALSO

48       fifo, fifo2, memchan, random, zero
49

KEYWORDS

51       channel, i/o, in-memory channel, null
52
54       Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
55
56
57
58
59Memory channels                       2.2                              null(n)
Impressum