码迷,mamicode.com
首页 > 其他好文 > 详细

How TCP clients and servers communicate using the TCP sockets interface

时间:2017-01-31 14:23:24      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:接口   nts   tab   tin   data   ica   ted   cee   ace   

wTCP客户端和服务器是如何通过TCP套接字接口进行通讯的。服务器距离、负载,网络拥堵。

HTTP The Definitive Guide

 技术分享

 

We begin with the web server waiting for a connection (Figure 4-6, S4). The client determines the IP
address and port number from the URL and proceeds to establish a TCP connection to the server
(Figure 4-6, C3). Establishing a connection can take a while, depending on how far away the server is,
the load on the server, and the congestion of the Internet.
Once the connection is set up, the client sends the HTTP request (Figure 4-6, C5) and the server reads
it (Figure 4-6, S6). Once the server gets the entire request message, it processes the request, performs
the requested action (Figure 4-6, S7), and writes the data back to the client. The client reads it (Figure
4-6, C6) and processes the response data (Figure 4-6, C7).

How TCP clients and servers communicate using the TCP sockets interface

标签:接口   nts   tab   tin   data   ica   ted   cee   ace   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6358769.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!