If your client/server protocol is line-based, then presumably your server would send some kind of "end of job" marker. Your client can detect this marker and begin the next job.
For example, SMTP uses a single period on a line by itself to signal the end of a message body. Be careful to prevent jobs from including that text in their output. SMTP escapes body lines that are single periods so that they aren't confused with end-of-message markers.
In reply to Re: How can I determine the server is waiting for input in POE::Wheel::ReadWrite?
by rcaputo
in thread How can I determine the server is waiting for input in POE::Wheel::ReadWrite?
by woosley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |