Hello.
I wanted to write a script which would listen on a specified port, then
"talk" to my client software (which means waiting for a command/reply
most of the time).
I used ns_socklistencallback and loop with gets on $sockRead. The
problem is that when I try to make two connections at the same time (or
even 'telnet' the nscp), nothing works.
Any idea on why is that? Should I ns_thread begin or begindetached?
I could convert my script to use ns_thread begindetached, socket -server
and fileevents+vwait, but I wanted to do it 'the AOLserver way' :)
Any ideas? When I tried ns_sockselect -timeout 60 $sockRead {} {} it
didn't help :(
Should I switch to nonblocking mode?
--
WK