other versions
- wheezy 8.4.19-5
conflicting packages
Tcl_CreateChannelHandler(3tcl) | Tcl Library Procedures | Tcl_CreateChannelHandler(3tcl) |
NAME¶
Tcl_CreateChannelHandler, Tcl_DeleteChannelHandler - call a procedure when a channel becomes readable or writableSYNOPSIS¶
#include <tcl.h>void Tcl_CreateChannelHandler(channel, mask, proc, clientData)void Tcl_DeleteChannelHandler(channel, proc, clientData)
ARGUMENTS¶
- Tcl_Channel channel (in)
- Tcl channel such as returned by Tcl_CreateChannel.
- 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.
DESCRIPTION¶
Tcl_CreateChannelHandler arranges for proc to be called in the future whenever input or output becomes possible on the channel identified by channel, or whenever an exceptional condition exists for channel. The conditions of interest under which proc will be invoked are specified by the mask argument. See the manual entry for fileevent for a precise description of what it means for a channel to be readable or writable. Proc must conform to the following prototype:typedef void Tcl_ChannelProc( ClientData clientData, int mask);
SEE ALSO¶
Notifier(3tcl), Tcl_CreateChannel(3tcl), Tcl_OpenFileChannel(3tcl), vwait(3tcl).KEYWORDS¶
blocking, callback, channel, events, handler, nonblocking.7.5 | Tcl |