https://blog.csdn.net/zxh1592000/article/details/78878303 linux下C/C++网络编程基本:socket实现tcp和udp的例子 https://blog.csdn.net/u012234115/article/details/54142273