Overview
| Artifact ID: | bfa757e5bfc1d150a2cebcd4ae1ee5b30d43c211abcfe9736b943bfd003960f6 |
|---|---|
| Ticket: | de232b49f26da1c18e07513d4c7caa203cd27910
write-only nonblocking refchan and Tcl internal buffers |
| User & Date: | pooryorick on 2024-03-31 15:23:51 |
Changes
- icomment:
Ashok wrote, "It is about the use of writable events to asynchronously detect when a connection is open." Again: <code><verbatim> set so [twapi::tls_socket -async www.example.com 443] fileevent $so writable [list apply {chan { #chan is now connected fconfigure $so -blocking 0 fileevent $so writable [list apply {chan { #do stuff with connected channel } $so] }} $so] vwait ... </verbatim></code> That example asynchronously detects when a connection is open, so we're done here, right? - login: "pooryorick"
- mimetype: "text/x-fossil-wiki"