开发者

Recv with TCP packet stream not sending ACK packet

开发者 https://www.devze.com 2023-01-28 02:12 出处:网络
Hi I am writing a application that uses TCP to communicate with a HTTP server. However I am seeing that I don\'t respond with an ACK packet after each data packet is received.

Hi I am writing a application that uses TCP to communicate with a HTTP server. However I am seeing that I don't respond with an ACK packet after each data packet is received.

Is this handled by the RECV routine开发者_运维问答?


Yes, ACK packets are handled by the kernel. In fact, the ACK will often be sent before your process returns from recv().


If you are referring to the TCP level ACK, then yes, this is handled by the protocol stack.

0

精彩评论

暂无评论...
验证码 换一张
取 消