参考文档:tcp协议http://blog.chinaunix.net/uid-26833883-id-3627644.html长连接和短连接http://blog.csdn.net/freewaywalker/article/details/50067757