Werner Motz wrote:
tcpip_callback(tcp_write(pcb,ucrecBuff,supersize,TCP_WRITE_FLAG_COPY),NULL);
tcpip_callback(tcp_output(pcb), NULL);
Ouch! tcpip_callback() takes a void pointer as first argument. You are
*first* calling tcp_write with the parameters supplied, then passing the
return valud of tcp_write to tcpip_callback. Here, an 'err_t' type is
implicitly interpreted as a void pointer.
Seriously, learn C and learn to set up your compiler to warn about such
erroneous code!
If and when you have truly lwIP related questions, feel welcome here to
get them answered!
Simon
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users