Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-08 Thread Sergio R. Caprile
I don't follow your logic, and don't have the time to sort it out. Sorry. You have a server. A server receives a request on the rx path, on an rx frame. I wouldn't process that on a poll callback, which is called at fixed intervals. Then the server tries to send something back, and it may have

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread A480G
Hi Noam, Thanks for your reply. I think I know what your mean. the Following code is doing the the same as you said: *static err_t ftpd_data_write(struct tcp_pcb *pcb, const void* ptr, u16_t *length, u8_t apiflags) { int vurti; u16_t len; err_t err;

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread A480G
Hi Sergio, Thank you for your advice, but you are mentioning that tcp_send as a call back will need to be used in the main also tcp_poll ok. *void ftpd_init(void) { struct tcp_pcb *pcb; pcb = tcp_new(); tcp_bind(pcb, IP_ADDR_ANY, 21); pcb = tcp_listen(pcb);

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-07 Thread Noam Weissman
pe that helped, Noam. -Original Message- From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of A480G Sent: Friday, August 05, 2016 5:08 PM To: lwip-users@nongnu.org Subject: [lwip-users] Large File transfer-- FTP lwIP 1.4.1 Hello to all, Currently I'm w

Re: [lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-05 Thread Sergio R. Caprile
It shouldn't, but your piece of code is too extense. Try to reduce it to something simple and not related to other modules, like sending "The quick brown fox jumps over the lazy dog" or something like that. Check you don't inadvertently call tcp_close() somewhere. The connection is closing

[lwip-users] Large File transfer-- FTP lwIP 1.4.1

2016-08-05 Thread A480G
Hello to all, Currently I'm working on a project that need to have the option to transfer a CSV file (1gb) to a client machine. Since the board that I'm using SAM4E ARM® Cortex®-M4 has a provided http library by the vendor using raw API lwIP, I''ve decided to try out implementing a FTP server.