Your code relies on the assumptions that the pipe never contains more than one message and that it always contains complete messages.
The difference is that my code doesn't rely on those bad assumptions.
In reply to Re^5: Can a socket listen for multiple hosts? -- UPDATE
by ikegami
in thread Can a socket listen for multiple hosts?
by sierpinski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |