util_driver_info (public)
util_driver_info [ -array array ] [ -driver driver ]
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Returns the protocol and port for the specified (or current) driver.
- Switches:
- -array (optional)
- the array to populate with proto, address and port
- -driver (optional)
- the driver to query (defaults to [ad_conn driver])
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {$driver eq ""} { set driver [ad_conn driver] } set section [ns_driversection -driver $driver] switch -glob -- $driver { nsudp* - nssock* { set d [list proto http port [ns_config -int $section Port] address [ns_config $section address]] } nsunix { set d [list proto http port "" address ""] } nsssl* - nsssle { set d [list proto https port [ns_config -int $section Port] address [ns_config $section address]] } nsopenssl { set d [list proto https port [ns_config -int $section ServerPort] address [ns_config $section address]] } default { #ns_log notice "Unknown driver: [ad_conn driver]. Only know nssock, nsunix, nsssl, nsssle, nsopenssl" set d [list proto http port [ns_config -int $section Port] address [ns_config $section address]] } } lappend d hostname [ns_config $section hostname] if {[info exists array]} { upvar $array result array set result $d } return $dXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-tcl/tcl/utilities-procs.xql