How to recive more than 65000 bytes in C++ socket using recv()

后端 未结 4 1318
暗喜
暗喜 2021-02-04 21:29

I am developing a client server application (TCP) in Linux using C++. I want to send more than 65,000 bytes at the same time. In TCP, the maximum packet size is

4条回答
  •  暖寄归人
    2021-02-04 22:19

    in tcp max packet sixe is 65,635,bytes

    No it isn't. TCP is a byte-stream protocol over segments over IP packets, and the protocol has unlimited transmission sizes over any one connection. Look at all those 100MB downloads: how do you think they work?

    Just send and receive the data. You'll get it.

提交回复
热议问题