Hello All, I am using Raw lwIP 1.4.1 on a microcontroller. Since the requirement is to have acknowledged transfer between two devices, I created a server and client model. However I ran into an issue.
When a connection is established between the server and the client, I can use the tcp_write on the client side to send data in my application code. However the same on the server side is not possible. The pcb that has been used for the server only contains the server's address and server's port but not the client's address and client's port. In the receive call back on the server side, I can send the data to the client but not outside of the call back. Since I know that at any point only one client can communicate with a server, so 1. Is the server client model in TCP/IP the correct choice, or is there some other model like a peer-2-peer that I should be using 2. If the server client model is correct, then how do I do a tcp_write outside the scope of a call back. Regards Amit
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users