I this goes out twice, that's my bad.
Hi Sudha,
Do you mean a remote computer querying the script through a socket?
Is so, after you've accepted the connection (probably in a loop of some
kind) with...
$paddr = accept(Client, Server);
... use the following two lines at the top of the loop...
Have you thought about setting up a separate thread when the process first
starts?
It could do all the work and dump output into a socket or pipe. The
receiving thread then just checks the socket (I have more experience
there, than with pipes) occasionally for waiting input.
Greg
[EMAIL P
2 matches
Mail list logo