I'm confused by "TCP client". Can you be more specific? What is the server responding to? lwIP supports TCP clients and servers both using it's low-level (RAW) API, a middle level API Netconn and the highest level as sockets.
The choice of API depends mainly on 2 things:
1. Are you using an OS?
2. What is your performance requirement?
But you're going in the right direction - you use connect and when you're informed of the connection (API-specific) you make requests from the server - this is application dependent unless you're talking about known servers like HTTP or FTP etc.
Here are 3 good references: the lwIP users WEB page, Wiki and user email list sign up:
https://savannah.nongnu.org/projects/lwip/ http://en.wikipedia.org/wiki/lwip http://lists.nongnu.org/mailman/listinfo/lwip-users The last link is where you sign up for joining the lwIP user mailing list which then allows you to post and receive email from other users and developers.
Bill