Tcl_NotifyChannel is used by a channel driver to inform the Tcl framework that a fileevent is firering.
Official documentation: https://www.tcl-lang.org/man/tcl8.6/TclLib/CrtChannel.htm
HaO 2014-06-04 I created this page to document issues and design points I had with this command within the rewrite of the Windows socket driver. Thanks to DGP for discussions on this on the chat.
socket -async connect failed which should be reported to a readable and writable eventHaO 2014-06-04: Within the socket driver, an async connect socket -async failed. This may happen:
How Tcl_NotifyChannel may be called:
This has the following issues:
The upper issues are solved if Tcl_NotifyChannel is called within the event queue. The registered event source procedures (Tcl_CreateEventSource(SocketSetupProc, SocketCheckProc, NULL)) should do this:
Implemented by fossil commit [L2 ]
See also Ticket ac661a684d and socket -async