When either of them receive data, it writes the data to the other socket.
当它们其中一个收到数据时,就会将数据写到另一个套接字。
recvit() calls soreceive(), which transfers received data from socket buffers to the receive buffers process. The soreceive() function performs various checks, such as
recvit() 调用 soreceive(),以便将接收的数据从套接字缓冲区传输到接收缓冲区进程。
Developing a scalable Winsock server is not terribly difficult. It's a matter of setting up a listening socket, accepting connections, and making overlapped send and receive calls.
开发大响应规模的Winsock服务器并不是很可怕,其实也就是设置一个监听套接字、接受连接请求和进行重叠收发调用。
应用推荐