This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6748 LWIP服务器发送数据问题,怎样给客户端传输大容量数据?



各位工程师您们好:

                                 我现在想在c6748这边做一个服务器,当PC(客户端)机下发指令后服务器需要连续传输最多几十兆的数据给客户端。请问一下,LWIP服务器这边怎样实现连续发送几十兆的数据给客户端呢?

                              我使用类似于下面的连续调用tcp_write函数和tcp_output函数好像一次性最多只能发送几十K的数据,多的数据发送不了;

                                 for(i=0;i<32;i++)

                                {

                                        /*

                                             需要发送的数据

                                       */

                                         tcp_write(...);

                                         tcp_output(...);

                                         加点延时;

                                }