Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了正常建立连接,我们会从服务器向客户端发送数据,但是可以从客户端向服务器发送数据。
要建立 TCP 连接,我们不仅会“正常”,而且总是会从客户端向服务器发送连接请求,从服务器向客户端确认,并从客户端向服务器确认确认。
这通常会跟随来自客户端的数据请求,然后是来自服务器的数据响应。
你的问题是基于一个错误的前提。