[AOLSERVER] Calling Tcl functions from C.

2001-08-30 Thread Peter Harper
If I've got a detached thread running some C code, how might I go about executing a Tcl procedure. Ns_TclEval looks like what I'm looking for, but it needs a server connection (as far as I can tell from the documentation). If anyone has done this before, or could give me some pointers/examples

Re: [AOLSERVER] Calling Tcl functions from C.

2001-08-30 Thread Jim Wilcoxson
This gets a conn: Ns_Conn *conn; /* get connection structure */ conn = Ns_TclGetConn(interp); if (conn == NULL) { Tcl_AppendResult(interp, NULL conn??, NULL); return TCL_ERROR; But a detached thread won't have a conn structure - it isn't associated with a connection. I think

Re: [AOLSERVER] Calling Tcl functions from C.

2001-08-30 Thread Michael Richman
In a message dated 8/30/01 12:00:42 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: If I've got a detached thread running some C code, how might I go about executing a Tcl procedure. Ns_TclEval looks like what I'm looking for, but it needs a server connection (as far as I can tell from the