Querying information about threads

The items an NCI module provides are extracted from the NetConfig file contents or are computed based on that. You can get the total amount of threads set up in your current NetConfig file.

Input: netconfig get connection count     
Output: 2

You can also list out all the names of those threads.

Input: netconfig get connection list     
Output: sane insane

At this point, you know the exact names of the threads. You can get additional details of the configuration by calling:

netconfig get connection data <thread>

This gives you the entire keyed list of the configuration for that thread. Then, you can pick out what is necessary.

Input: set conndata [ netconfig get connection data sane]     
Output: 
    { AUTOSTART 1 }
    { BITMAP /hci/bitmaps/hcilogo.xbm }
    { COORDS {267 75} }
    { DATAFORMAT {
        { FRLTYPE offlen }
        { OFFLEN {
            { LEN 0 }
            { OFF 0 }
        } }
……
    { STARTPROCS {
        { ARGS {} }
        { PROCS {} }
    } }
    { STOPPROCS {
        { ARGS {} }
        { PROCS {} }
    } }
    { SYMNAME sane }
{ USERECOVERDB 0 }

Input: keylget conndata PROTOCOL.OUTFILE     
Output: output