异步socket用单线程就可以,这有很多socket的源码,你可以参考:
http://download.csdn.net/detail/geoff08zhang/4571358