This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RL-TCPnet and TCP question

Hello, I'm trying to understand how to use tcp on LPC2460.
I have set up a server that listens on 5 sockets, sharing the same callback function, based somehow on this link www.keil.com/.../rlarm_tn_tcp_mulconn.htm

from www.keil.com/.../rlarm_tn_using_tcpsoc_sendtcp.htm :

"The main goal is to keep it small and not resource hungry. For this reason, the TCP socket cannot keep a large amount of data in the buffer waiting to be acknowledged. It only keeps the last packet sent, in memory, until it is acknowledged. When the packet is acknowledged, it is released from memory."

So only one socket can have its packet sent at one time if i want the guarantee for it to arrive, isn't it?
What happens if I try to send another packet? Will the tcp_send return __FALSE because the last sent hasn't been acknowledge yet? Or will it return true because it will be sent (and i will lose the guarantee that the packet sent will arrive to its destination)?