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

RA6M4 - Azure RTOS Bsd socket - FSP 3.8.0 - socket connect problem

Hi,

For your information,

I found a problem in the bsd socket connect function in file "nx_tcp_client_socket_connect.c"

I'm using a non blocking socket

When i want to connect my socket to a tcp server, the "connect" function always returns "NX_IN_PROGRESS"

But in the connect function in file "nxd_bsd", it's waiting "NX_SUCCESS" only

I compared the file "nx_tcp_client_socket_connect.c" between SSP synergy and FSP for RA and found a difference.

This code is missing in Fsp :

    /* Determine if the connection is complete.  This can only happen in a connection
       between ports on the same IP instance.  */
    if (socket_ptr -> nx_tcp_socket_state == NX_TCP_ESTABLISHED)
    {

        /* Release the protection.  */
        tx_mutex_put(&(ip_ptr -> nx_ip_protection));

        /* Return a successful status.  */
        return(NX_SUCCESS);
    }

I think the Synergy code is good.

Regards,

Phil




[locked by: Sai (SWF) at 12:31 (GMT 0) on 5 Jan 2023]