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 check its returned value to confirm data has been sent. Have you run any other (supposed to work) example on your client before trying this your own code ? Assuming the port is working and you are calling lwip functions from only one thread, have a look at the examples in the contrib area, smtp.c is a master piece of an example for a client. Also, the wiki is not bad at all.
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users