Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-30 Thread Tom Jackson
I thought I sent this last week, but I used the wrong account, anyway: This example is not multi-threaded, but it handles multiple connections. The basic API are ns_socklisten, ns_sockaccept and ns_sockcheck. (http://rmadilo.com/files/nsapi/) The example also uses ns_socklistencallback, but the

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-22 Thread Jim Davidson
The code should work ok. I remember it was a bit messy to map these Aolserver tcl commands which pre-dated the Tcl channel stuff so it was compatible years ago and there were examples of memory leaks from long running detached tcl threads but with care it should be ok Jim Sent from my

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-20 Thread Nikolay Shulga
Hello, AolServer gives a possibility to use ns_socklistencallback to open a socket, 'ns_thread begindetached' to create thread, ns_chanĀ  - to path channel to this thread. If we do this with every new connection, we get multithreaded tcp socket server - which is exactly what I wanted. I've

Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket server ?

2009-08-18 Thread Bas Scheffers
As far as I am aware, the only way to do it is to implement a new socket driver in C. AOLserver can certainly handle this. There used to be nsftp, which did just that. Bas. On Tuesday, August 18, 2009 10:26pm, Nikolay Shulga nikolay.shu...@runway.lv said: Hello, Is it possible to