Winsocket version
Merge https://github.com/Shuailong/SocketProgramming