Artifacts Associated With Ticket 455867
Ticket change [f4772466db] (rid 129922) by dgp on 2001-08-27 19:22:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The Tcl command [file channels $pattern] returns a list of the names of all open channels, where the name matches $pattern. However, the names of channels are not documented to have any particular properties. They are just tokens to be passed around by commands that manipulate or use channels. Also, any channel that happens to be aliased to a standard channel becomes known by the std channel name (f.e. stdout) in the [file channels] output, not matter what its original names was. So. [file channels sock*] is not a foolproof way to get a list of all open sockets. We need another means to introspect channels by their Tcl_ChannelType.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "25. Channel System"
- title initialized to: "Introspect channels by type"
- type initialized to: "RFE"
Ticket change [ffbff56f39] (rid 108810) by dgp on 2001-08-28 02:23:41:
- icomment:
Logged In: YES user_id=80530 See also Tcl bug 419685
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [449f8803ea] (rid 116738) by andreas_kupries on 2001-09-15 06:54:33:
- assignee changed to: "andreas_kupries"
Ticket change [e05ba800e9] (rid 115178) by andreas_kupries on 2001-09-20 06:33:46:
- icomment:
Logged In: YES user_id=75003 A possible interface would be: 1) [file channeltypes] returns a list of registered channel types, aka channel drivers. 2) [file channels -type typename] lists all channels having the given type.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [f44328af0d] (rid 129877) by vincentdarley on 2001-09-20 22:27:31:
- icomment:
Logged In: YES user_id=32170 This might be a good occasion to NOT extend file, but add a 'channel' command to Tcl: channel types channel names (-type typename) pat etc. In the future this could be extended with 'channel transform'. I don't think further overloading of 'file' is the right place for this stuff (but I'm v. happy to hear arguments to the contrary).
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [6be5ba3571] (rid 128404) by andreas_kupries on 2001-09-21 01:33:37:
- icomment:
Logged In: YES user_id=75003 I will not argue against this. I am still wondering how we wound up with [file channels]. Unfortunately it is already in 8.3.3 and not in one the 8.4 alphas or I would change that to [channel names] in a jiffy.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [955d8a8659] (rid 106145) by dgp on 2007-09-06 05:22:32:
- icomment:
Logged In: YES user_id=80530 Originator: YES It appears the new [chan names] in Tcl 8.5 is just another name for [file channels] which still just does glob matching on the channel name. Introspection on the name of the channel type is still missing.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [691dbc0bbe] (rid 103193) by andreas_kupries on 2007-09-06 05:23:51:
- icomment:
Logged In: YES user_id=75003 Originator: NO In 8.5 the command 'chan names' implements the same functionality. Internally mapped to '::file channels'.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [aae6e589d2] (rid 101003) by andreas_kupries on 2007-09-06 05:24:45:
- icomment:
Logged In: YES user_id=75003 Originator: NO Oh, by type. Yes, that we do not have anywhere.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [261c2f1054] (rid 172069) by dgp on 2019-06-03 16:07:43:
- assignee changed to: "aku"
- closer changed to: "nobody"
- comment changed to:
The Tcl command [file channels $pattern] returns a list of the names of all open channels, where the name matches $pattern. However, the names of channels are not documented to have any particular properties. They are just tokens to be passed around by commands that manipulate or use channels. Also, any channel that happens to be aliased to a standard channel becomes known by the std channel name (f.e. stdout) in the [file channels] output, not matter what its original names was. So. [file channels sock*] is not a foolproof way to get a list of all open sockets. We need another means to introspect channels by their Tcl_ChannelType.
- icomment:
See TIP 411
- login: "dgp"
- mimetype: "text/plain"
- severity changed to: "Minor"