void Tcl_CreateChannelHandler(channel, mask, proc, clientData)
void Tcl_DeleteChannelHandler(channel, proc, clientData)
- Tcl_Channel channel (in)
Tcl channel such as returned by
- int mask (in)
Conditions under which proc should be called: OR-ed combination of TCL_READABLE, TCL_WRITABLE and TCL_EXCEPTION. Specify a zero value to temporarily disable an existing handler.
- Tcl_FileProc *proc (in)
Procedure to invoke whenever the channel indicated by channel meets the conditions specified by mask.
- ClientData clientData (in)
Arbitrary one-word value to pass to proc.
typedef void Tcl_ChannelProc( ClientData clientData, int mask);
The clientData argument is the same as the value passed to
Each channel handler is identified by a unique combination of
proc and clientData.
There may be many handlers for a given channel as long as they don't
have the same channel, proc, and
Channel handlers are invoked via the Tcl event mechanism, so they are only useful in applications that are event-driven. Note also that the conditions specified in the mask argument to proc may no longer exist when proc is invoked: for example, if there are two handlers for TCL_READABLE on the same channel, the first handler could consume all of the available input so that the channel is no longer readable when the second handler is invoked. For this reason it may be useful to use nonblocking I/O on channels for which there are event handlers.
Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
Notifier(), Tcl_CreateChannel(), Tcl_OpenFileChannel()
PTC MKS Toolkit 10.3 Documentation Build 39.