[ Tcllib Table Of Contents | Tcllib Index ]
tcl::chan::facade(n) 1 "Reflected/virtual channel support"
tcl::chan::facade - Facade channel
- package require Tcl 8.5
- package require TclOO
- package require logger
- package require tcl::chan::core ?1?
- package require tcl::chan::facade ?1?
The tcl::chan::facade package provides a command creating facades to other channels. These are channels which own a single subordinate channel and delegate all operations to.
The main use for facades is the debugging of actions on a channel. While most of the information could be tracked by a virtual channel transformation it does not have access to the event-related operation, and furthermore they are only available in Tcl 8.6.
Therefore this channel, usable with Tcl 8.5, and having access to everything going on for a channel.
The intercepted actions on channel are logged through package logger.
Beyond that facades provide the following additional channel configuration options:
Of these only option -user is writable.
- ::tcl::chan::facade chan
This command creates the facade channel around the provided channel chan, and returns its handle.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category virtchannel of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.
Copyright © 2011 Andreas Kupries <email@example.com>