Re: [naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-02-01 Thread Zoran Vasiljevic
On Fri, 1 Feb 2019 11:15:46 -0500 Andrew Piskorski wrote: > since I'm not using virtual servers anyway, how do I say > "all of them, process-wide"? You can't. The nsv buckets are stored on per-server basis. Naviserver may run a number of virtual servers. You declare all this in the configurati

Re: [naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-02-01 Thread Andrew Piskorski
On Fri, Feb 01, 2019 at 04:25:20PM +0100, Zoran Vasiljevic wrote: > > I'm a little confused by (e.g.) Ns_VarGet(), though. Why is its first > > arg a string for the "server"? What does that mean, and where am I > > supposed to get it from? > > This is the identification of the Naviserver's virt

Re: [naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-02-01 Thread Zoran Vasiljevic
On Fri, 1 Feb 2019 09:59:09 -0500 Andrew Piskorski wrote: > So they do the exact same thing, and are completely interoperable? > Meaning I can have C and Tcl talk to each other via Ns_Var* in C and > nsv_* in Tcl? Great! Yes. > > I'm a little confused by (e.g.) Ns_VarGet(), though. Why is it

Re: [naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-02-01 Thread Andrew Piskorski
On Fri, Feb 01, 2019 at 10:22:46AM +0100, Zoran Vasiljevic wrote: > Andrew Piskorski wrote: > > > I know that the Tcl nsv_get command is implemented by > > NsTclNsvGetObjCmd(). But in the NaviServer C code, what is > > Ns_VarGet() for? I don't see it used anywhere. Is Ns_VarGet() a C > > interf

Re: [naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-02-01 Thread Zoran Vasiljevic
On Thu, 31 Jan 2019 14:48:11 -0500 Andrew Piskorski wrote: > I know that the Tcl nsv_get command is implemented by > NsTclNsvGetObjCmd(). But in the NaviServer C code, what is > Ns_VarGet() for? I don't see it used anywhere. Is Ns_VarGet() a C > interface to exact same nsv_get functionality, or

[naviserver-devel] Ns_VarGet vs. NsTclNsvGetObjCmd

2019-01-31 Thread Andrew Piskorski
I know that the Tcl nsv_get command is implemented by NsTclNsvGetObjCmd(). But in the NaviServer C code, what is Ns_VarGet() for? I don't see it used anywhere. Is Ns_VarGet() a C interface to exact same nsv_get functionality, or is it for something completely different? -- Andrew Piskorski _