如何在winsock C ++中接收超过5000个字节? [英] How to receive more then 5000 bytes in winsock C++?

查看:100
本文介绍了如何在winsock C ++中接收超过5000个字节?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个客户端服务器应用程序,但客户端没有收到更多的5000字节。

请帮帮我。

I create a client server app,But the client did not receive more 5000 bytes.
Please help me.

推荐答案

无法保证您将所有数据都包含在一个数据包中。



对于大包,发送应用程序通常会将其分解为块,您需要重新组装。
There's no guarantee that you'll get all of your data in one packet.

With large packets, the sending application will often break it into chunks, that you'll need to reassemble.


这篇关于如何在winsock C ++中接收超过5000个字节?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆