cancel
Showing results for 
Search instead for 
Did you mean: 

NetXDuo function nx_tcp_client_socket_connect returning unlisted error

isaquesuzuki
Associate II

Hello,

I'm trying to find out why nx_tcp_client_socket_connect is returning 0x38. This error code is not listed in documentation. Because of this, there is no ARP packet being sent.

 

static VOID nx_app_thread_entry (ULONG thread_input)

{

UINT status;

status = nx_tcp_socket_create(&NetXDuoEthIpInstance, &client_socket, "Client Socket",

NX_IP_NORMAL, NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE, 200,

NX_NULL, NX_NULL);

status = nx_tcp_client_socket_bind(&client_socket, 45450, NX_WAIT_FOREVER);

status = nx_tcp_client_socket_connect(&client_socket, IP_ADDRESS(192, 168, 15, 16), 45450, NX_IP_PERIODIC_RATE);

}

1 ACCEPTED SOLUTION

Accepted Solutions
ASEHST
ST Employee

Hello @isaquesuzuki,

The nx_tcp_client_socket_connect function is returning the NX_NOT_CONNECTED error code (0x38). This error indicates that the socket is not connected, which can occur for various reasons, such as the server not being reachable, the specified port not listening for connections, or a network configuration issue preventing the connection.

Could you please verify the server's operational status, check the network configurations, and review the ARP behavior to ensure the IP address is resolved correctly?

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".

View solution in original post

1 REPLY 1
ASEHST
ST Employee

Hello @isaquesuzuki,

The nx_tcp_client_socket_connect function is returning the NX_NOT_CONNECTED error code (0x38). This error indicates that the socket is not connected, which can occur for various reasons, such as the server not being reachable, the specified port not listening for connections, or a network configuration issue preventing the connection.

Could you please verify the server's operational status, check the network configurations, and review the ARP behavior to ensure the IP address is resolved correctly?

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".