Cooperate with `p2dv.in`. Modify the client again for the benefit of local execution.

1. Use another thread to communicate with `p2dv.in`
2. Refactor
3. In the client, set a default value `12345` of `arg[2]`.