Bug fix & Refactor

1. Move timeout check from `main.py` to `server.receive` and `server.send`.
2. Correct the typo from `recieve` to `receive`.
3. Use a different method to make sure connection timeout check is correct.
4. Re-format the log.
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]`.
Merge pull request #7 from abcdabcd987/master

Bug fix & Refactor & Client modification By clq