Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLwIP Configuration problem
I follow the document " Using Lightweight IP with the NiosII Processor Tutorial " to optimize LwIP Throughput . On page B-2 , it suggest that the optimal value of TCP_WND is 32768 . (T...
Altera_Forum
Honored Contributor
21 years agoI use the simple socket server project which provided by NiosII IDE.
I modify the sss_handle_receive( ) in simple_socket_server.c and use sss_handle_receive( ) to receive data which sent by PC. The sss_handle_receive( ) use the code as below to receive data . rx_code = recv(conn->fd, conn->rx_buffer, data_length , 0); For optimizing the LwIP Throughput , I use the NiosII IDE to set the value of TCP_WND . When I set the value of TCP_WND for 32768 , the data I obtained is smaller than data_length . But it is normal , if the value of TCP_WND is 2048 . How can I do to solve the problem ? thanks~