[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.
In reply to Re: clashing sockets?
by ikegami
in thread clashing sockets?
by rhxk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |