完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我正在开发一个FTP客户端。它工作正常,但我想提高文件传输速度。我已经将TCPIP_TCP_SOCKET_DEFAULT_RX_SIZE和TCPIP_TCP_SOCKET_DEFAULT_TX_SIZE从默认设置512增加到2048,这使它更快。然后将TCPIP_TCP_TCP_SOCKET_SOCKET_DEFAULT_RX_SIZE tp 4096更改为TCPIP_TCP_TCP_SOCKET_SOCKET_DEFAULT_RX_SIZE tp 4096,打开时malloc失败。套接字。所以我通过向项目属性中添加2048来改变链接器堆的大小,但是malloc仍然失败。关于我遗漏了什么有什么想法吗?快乐的人
以上来自于百度翻译 以下为原文 Hi, I'm developing an FTP client. It's working ok, but I want to improve file transfer speed. I have increased TCPIP_TCP_SOCKET_DEFAULT_RX_SIZE and TCPIP_TCP_SOCKET_DEFAULT_TX_SIZE to 2048 from the default setting of 512, which makes it faster. I then changed TCPIP_TCP_SOCKET_DEFAULT_RX_SIZE tp 4096, and malloc fails when I open the socket. So I changed the linker heap size in project properties by adding 2048 to it, but still malloc fails. Any thoughts about what I have missed? Cheers Martin |
|
相关推荐
4个回答
|
|
|
那么,默认值返回到512,然后只更改那些套接字的大小?
以上来自于百度翻译 以下为原文 ok, so put the defaults back to 512 then change the size for those sockets only? |
|
|
|
|
|
FPY TCPIP从一堆中堆堆中提取TeTCPIpStAg*Read大小分配。然后从那个池中的MalCube()缓冲区。它永远不会回到堆里。除非你关闭了堆栈,谢谢-这是有用的信息
以上来自于百度翻译 以下为原文 FYI the TCPIP pulls the TCPIP_STACK_DRAM_SIZE allocation from the heap in one shot. It then malloc()s buffers from that pool. It never goes back to the heap. Unless maybe if you shut down the stack. Thanks - that's useful information |
|
|
|
|
|
有人能告诉我WestPcpStaskStudioRuniLimiTo吗?它是最大的可分配的TCPIP堆吗?
以上来自于百度翻译 以下为原文 can anyone tell me what TCPIP_STACK_DRAM_RUN_LIMIT does? Is it the largest block of tcpip heap that can be allocated? |
|
|
|
|
|
谢谢。我的意思是我的应用程序是如何收到警告的?例如,它是从Maloc返回的错误吗?
以上来自于百度翻译 以下为原文 thanks. What I actually meant was how does my app receive the warning? For example, is it an error returned from malloc |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:44 , Processed in 0.649580 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
552