socket中tcp的三次握手和四次挥手过程: 参考: https://www.jianshu.com/p/066d99da7cbd https://blog.csdn.net/pashanhu6402/article/details/96428887