tcp_output don't work

eightmusic
Posts: 2
Joined: Sun Oct 22, 2017 8:12 am

tcp_output don't work

Postby eightmusic » Fri Feb 09, 2018 5:58 am

Code: Select all

	int i = 0;
	err_t ret;
    uint8_t *sendbuf = malloc(1024);
    memset(sendbuf, 'a', 1024);
    for (i=1;i<10;i++){
        ret = tcp_write(pcb_data, sendbuf, 1024, 1);
    	ESP_LOGI(TAG,"tcp_write=%d",ret);
    	ret = tcp_output(pcb_data);
    	ESP_LOGI(TAG,"tcp_output=%d",ret);
    }
[0;32mI (41430) ftp_server: tcp_write=0[0m
[0;32mI (41434) ftp_server: tcp_output=0[0m
[0;32mI (41438) ftp_server: tcp_write=0[0m
[0;32mI (41442) ftp_server: tcp_output=0[0m
[0;32mI (41446) ftp_server: tcp_write=0[0m
[0;32mI (41450) ftp_server: tcp_output=0[0m
[0;32mI (41454) ftp_server: tcp_write=0[0m
[0;32mI (41458) ftp_server: tcp_output=0[0m
[0;32mI (41462) ftp_server: tcp_write=0[0m
[0;32mI (41466) ftp_server: tcp_output=0[0m
[0;32mI (41470) ftp_server: tcp_write=-1[0m
[0;32mI (41474) ftp_server: tcp_output=0[0m
[0;32mI (41478) ftp_server: tcp_write=-1[0m
[0;32mI (41482) ftp_server: tcp_output=0[0m
[0;32mI (41486) ftp_server: tcp_write=-1[0m
[0;32mI (41490) ftp_server: tcp_output=0[0m
[0;32mI (41494) ftp_server: tcp_write=-1[0m
[0;32mI (41499) ftp_server: tcp_output=0[0m

The receiver does receive 6K data, but it does not receive more data.

Who is online

Users browsing this forum: No registered users and 114 guests