|
1Qter豆
- Only QTcpSocket uses QAbstractSocket's internal buffer; QUdpSocket does not use any buffering at all, but rather relies on the implicit buffering provided by the operating system. Because of this, calling this function on QUdpSocket has no effect.
复制代码 udpsocket的缓存由操作系统决定? 我单步调试发现好像只有8K,是这样的吗?如果这样子怎么才能把缓冲区变大一点呀
|
最佳答案
查看完整内容
由于UDP本身的不稳定性,它不适合传送大型文件,即便缓存很大,也会出现传输问题的。
|