The first step of "agent" has almost completed ,just achieve the basic

function of agent.
Primarily rewrite my agent code refer to seniors' code,achieve the simple communication between the client and server.The next step is to achieve that the server can accepts task flows and then deal with fork and exec.

为什么循环？　尽量避免让人匪夷所思的代码呵呵