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
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
comands
from me. But it would be good to have full access to the socket
, from TCL script,
without being obliged to send HTTP GET or other
requests.
ns_register_proc - unfortunately doesn't give such a possibility, I can
have
access to the socket but only after HTTP request has been sent.
ns_socklistencallback - it gives full controll over the channell , but
process
only one client at the moment. It will accept connections from
several clients,
but will process only the first one. The others will
block untill the first one
will disconnect.
Please , if anyone knows the solution for this, share it with me .
--
Nikolay Shulga
Nikolay
Shulga
IT
Support
Runway International
Basteja blvd.16, Riga,
LV 1050, Latvia
Fax: +371 67 224 439
Mob. : +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 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 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 - 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.