Hi Zoran,

I checked the "ns_chan" implementation.
I found that you can share a TCL channel across interps and threads (the
channel is registered in the NULL interp), but you cannot unregister the
channel from the NULL interp. There is no option on the ns_chan command to
do that.

So, what I understand is that the shared channel will be opened forever.. Am
I wrong saying that ?
If I am right, so trying to unregister the channel form the NULL interp
crashes TCL. That is the bug I actually have in my module.

Regards.

Jean-Fabrice RABAUTE
Core Services - Enjoy the future today
http://www.core-services.fr
Mob: +33 (0)6 13 82 67 67

-----Message d'origine-----
De : AOLserver Discussion [mailto:[EMAIL PROTECTED] la part
de Zoran Vasiljevic
Envoyé : mercredi 2 juillet 2003 09:53
À : [EMAIL PROTECTED]
Objet : Re: [AOLSERVER] Tcl shared channels


On Tuesday 01 July 2003 23:26, you wrote:
> My system is Solaris 2.6, AOLServer 4.0 beta 5 and TCL 8.4.2.
>
> I will try to clean the code and put it on my web site as v2.0 of my
module
> this week, so you can have a look.
>
> But if it's an existing feature of the 4.0 fine ! if so, what is the
> function to share channels ?

lexxsrv:nscp 1> ns_chan
wrong # args: should be "ns_chan command ?args?"

lexxsrv:nscp 2> ns_chan sdfgs
bad option "sdfgs": must be cleanup, list, share, register, or unregister

HTH,
Zoran


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to