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

Strange behaviour with TCP-Net/RTX

Hi,

I writing an FTP server with RTX and TCP net.
At this time the code only sends a welcome string when someone connects on the port 21.

It works well at the first connection, but at the second
one the welcome string is never sent even if the connection/deconnection cycle is OK.
When I take a look inside, at the second connection, the tcp_callback get the state TCP_EVT_CONNECT but when I want to check the socket just before sending the welcome string tcp_get_state returns TCP_STATE_LISTEN !!

How is it possible to get TCP_EVT_CONNECT and TCP_STATE_LISTEN at the (quasi) same time ?

0