Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 787999127b7efb9203d4d7862b4dc4718c4c738a9571149bb34b6acdd19f3cd7
Ticket: 6a61b9d61492a249009d231f362c7a8589552565
fileevent command missing "exception" as acceptable watchMask
User & Date: davygrvy on 2026-06-22 19:15:10
Changes

  1. icomment:
    I've been pondering this change. exception events on, say a TCP socket, could not only include the OOB byte, but could be used to receive QOS changes, and even nameserver lookups.  Maybe something like this:
    
    ```tcl
    chan event $sock exception [list socket_except $chan [subst -noc {[chan configure $chan -pop_except_type]}]]
    
    proc socket_except {chan type} {
        switch -- $type {
            qos {
                 set qos_data [chan configure $chan -pop_qos]
            }
            oob {
                 set byte [binary scan c [chan configure $chan -pop_oob]]
            }
        }
    }
    ```
    
  2. login: "davygrvy"
  3. mimetype: "text/x-markdown"