1.modefy the client sock strategy.
1.add gitignore file and fix some compile bug