I can "telnet" to the server and run these commands, when the command sent out the result, I can input another command.
How do you know the command finished sending out the result? By the prompt you are given once it's done. Or maybe because you recognize the format of the output. Or maybe you assumed it was done based on the passing of time. Those are examples of the aforementioned "end of job marker".
A computer cannot detect the appropriate condition without being told what it is. There's too much variety in the possibilities. They usually come in two varieties:
A prefix that indicates how much data is coming.
For example,
A sentinel value indicates the end has been received.
For example,
In reply to Re^3: How can I determine the server is waiting for input in POE::Wheel::ReadWrite?
by ikegami
in thread How can I determine the server is waiting for input in POE::Wheel::ReadWrite?
by woosley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |