也是一个.
监听不同客户机接入的不同套结字,然后接受 ,建立Socket连接.
对于服务端来说TCP进程有两个套接字, 一个是三次握手时使用的`欢迎套接字`, 另一个是专门对客户进行连接的新生成的套接字,称为`连接套接字`. UDP不需要三次握手,所以会在每个分组中携带目的地址. 不同的客户端和服务器连接都是先和`欢迎套接字`握手,连接后马上生成一个新的`连接套接字` 所以TCP服务器需要n+1个套接字就可以了.
26. With the UDP server, there is no welcoming socket, and all data from different clients enters the server through this one socket. With the TCP server, there is a welcoming socket, and each time a client initiates a connection to the server, a new socket is created. Thus, to support n simultaneous connections, the server would need n+1 sockets.
TCP会多出一个欢迎套接字,结果是n+1