in reply to clashing sockets?
[Answer partially removed. I was thinking INET, not unix domain sockets]
If no process is sending something to this listening process (above) then the above script idles on recv line until it receives something again? How can I make it get out of the 'recv' cond to exec the count++?
Use select() to wait for data to become available on the socket. select() can be given a timeout so you can do your idle processing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: clashing sockets?
by rhxk (Beadle) on Sep 07, 2004 at 22:48 UTC | |
by ikegami (Patriarch) on Sep 07, 2004 at 22:56 UTC | |
by rhxk (Beadle) on Sep 08, 2004 at 19:53 UTC |