1tcl::chan::zero(n) Reflected/virtual channel support tcl::chan::zero(n)
2
3
4
5______________________________________________________________________________
6
8 tcl::chan::zero - Zero channel
9
11 package require Tcl 8.5
12
13 package require TclOO
14
15 package require tcl::chan::events ?1?
16
17 package require tcl::chan::zero ?1?
18
19 ::tcl::chan::zero
20
21______________________________________________________________________________
22
24 The tcl::chan::zero package provides a command creating zero channels,
25 i.e. read-only channels which return an infinite stream of null charac‐
26 ters upon reading. This is equivalent to the zero channels provided by
27 the package Memchan, except that this is written in pure Tcl, not C. On
28 the other hand, Memchan is usable with Tcl 8.4 and before, whereas this
29 package requires Tcl 8.5 or higher, and TclOO.
30
31 Packages related to this are tcl::chan::null and tcl::chan::nullzero.
32
33 The internal TclOO class implementing the channel handler is a sub-
34 class of the tcl::chan::events framework.
35
37 ::tcl::chan::zero
38 This command creates a new zero channel and returns its handle.
39
41 This document, and the package it describes, will undoubtedly contain
42 bugs and other problems. Please report such in the category virtchan‐
43 nel of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist].
44 Please also report any ideas for enhancements you may have for either
45 package and/or documentation.
46
47 When proposing code changes, please provide unified diffs, i.e the out‐
48 put of diff -u.
49
50 Note further that attachments are strongly preferred over inlined
51 patches. Attachments can be made by going to the Edit form of the
52 ticket immediately after its creation, and then using the left-most
53 button in the secondary navigation bar.
54
56 /dev/zero, reflected channel, tip 219, virtual channel, zero
57
59 Channels
60
62 Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
63
64
65
66
67tcllib 1 tcl::chan::zero(n)