重写client和server的测试验证代码 #4 by USTC-KIRA

https://github.com/mengning/stream/pull/4
对client和server代码格式做了点修改