Re: [lwip-users] tcp_write fails: package generation doesn't work properly

2014-06-11 Thread Sergio R. Caprile
Well, I don't see how you call those functions on your client, but you know you have to wait to be connected before you send data, do you ? The callback in tcp_connect() will be called when that happens. Also, you are supposed to check for the available room before calling tcp_write(), and/or

[lwip-users] tcp_write fails: package generation doesn't work properly

2014-06-10 Thread Friedrico
Hello, I have the following setup: Server (Lwip 1.4.1 in a VM) Client (also 1.4.1 on an Infineon Triboard using Erika Enterprise os) The client code looks similar to this: struct tcp_pcb *tcpPcb; static const char data[] = ... /*100 bytes*/ static err_t tcpReceive(void *arg, struct tcp_pcb