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 tested it and it works. Now I have a question if there exists any potential problem with such aproach ? During this week, I has been googling on this topic. I've met several discussions in the Internet on this theme, and for some strange reason nobody has proposed this method to be used, it has not been discussed. So is there a reason not to use it ? Nikolay
Shulga Bas Scheffers wrote: 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 use Aolserver as multithreaded TCL socket server ?If I connect to Aolserver using telnet , the server waits one of HTTP comandsfrom me. But it would be good to have full access to the socket, from TCL script,without being obliged to send HTTP GET or otherrequests.ns_register_proc - unfortunately doesn't give such a possibility, I can haveaccess to the socket but only after HTTP request has been sent.ns_socklistencallback - it gives full controll over the channell , but processonly one client at the moment. It will accept connections fromseveral clients,but will process only the first one. The others willblock untill the first onewill disconnect.Please , if anyone knows the solution for this, share it with me .--Nikolay ShulgaNikolayShulgaITSupportRunway InternationalBasteja blvd.16, Riga, LV 1050, LatviaFax: +371 67 224 439Mob. : +371 29 666 501[mailto:nikolay.shu...@runway.lv] nikolay.shu...@runway.lv[http://www.runway.lv/] www.runway.lv__________________________________ Multi-lingual contact centre services for the Nordic, European, Russian and English speaking markets-- AOLserver - http://www.aolserver.com/To Remove yourself from this list, simply send an email to<lists...@listserv.aol.com> with thebody of "SIGNOFF AOLSERVER" in the emailmessage. 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 <lists...@listserv.aol.com> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
|
- [AOLSERVER] Aolserver as multithreaded TCL socket server ? Nikolay Shulga
- Re: [AOLSERVER] Aolserver as multithreaded TCL soc ket... Bas Scheffers
- Re: [AOLSERVER] Aolserver as multithreaded TCL soc... Nikolay Shulga
- Re: [AOLSERVER] Aolserver as multithreaded TCL... Jim Davidson
- Re: [AOLSERVER] Aolserver as multithreaded TCL... Tom Jackson