图7对整个过程进行了归纳,它不但从套接字api的角度展示了应用程序的流程,而且还从客户机和服务器的角度介绍了它们之间的关系。
Figure 7 Outlines the entire process and shows not only the flow of the application from a sockets API perspective but also the relationships from a client and server perspective.
返回的信息可用于对网络(套接字连接响应时间)性能和网络故障原因代码进行分析。
Information returned can provide insight into the performance of the network (socket connect response time) and network failure reason codes.
当一端对一个套接字执行写操作时,可确保对等端读出的数据大小与此相同(请参见图5)。
When a peer performs a write on a socket, it is guaranteed that this same-sized chunk of data will be read at the peer endpoint (see Figure 5).
应用推荐