1
2null(n) null(n)
3
4
5
7 null - Create and manipulate null channels
8
10 package require Tcl
11
12 package require memchan
13
14 null
15
16
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 null creates a null channel which absorbs everything written into it.
22 Reading from it is not possible, or rather will always return
23 zero bytes. These channels are essentially Tcl-specific variants
24 of the null device for unixoid operating systems (/dev/null).
25 Transfering the generated channel between interpreters is possi‐
26 ble but does not make much sense.
27
29 Memory channels created by null provide one additional option to set or
30 query.
31
32 -delay ?milliseconds?
33 A null 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
39 A null channel is always writable and never readable. This means that a
40 writable fileevent-handler will fire continuously and a readable
41 fileevent-handler never at all. The exception to the latter is only the
42 destruction of the channel which will cause the delivery of an eof
43 event to a readable handler.
44
46 memchan, fifo, fifo2, random, zero
47
49 null, in-memory channel, channel, i/o
50
52 Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
53
54
55
56Memory channels 2.2 null(n)