On 2002.07.17, Jean-Fabrice RABAUTE <[EMAIL PROTECTED]> wrote:
> For your first question, the answer is YES. What I am doing for my use is to
> open a socket connection at AOLServer startup, detach it, and then use the
> socket descriptor in all my tcl page scripts as well as threads created
> using "ns_thread".
> When detached, the socket still remains, you just have to use the "attach"
> function to attach it in another thread or script and that's all.

Do we (the users of this module) need to create our own mutex to ensure
that no two threads are reading/writing the socket at the same time?

-- Dossy

Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Reply via email to