Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: FTP Support?

$
0
0
I have an FTP server along with HTTP server working but FTP client does not work. I'm using the same nx_ip instance when instantiating the FTTP server, HTTP server and FTP client NX instances. For the FTP client error case, the return code for nx_ftp_client_connect is 0x38 which is NX_NOT_CONNECTED (Socket is not in a connected state). Here is the FTP client snippet code: /* Create an FTP client. */ status = nx_ftp_client_create(&ftp_client, "FTP Client", &ip_0, 2000, &client_pool); /* Check status. */ if (status != NX_SUCCESS) { error_counter++; return; } printf("Created the FTP Client\n"); /* Now connect with the NetX FTP (IPv4) server. */ status = nx_ftp_client_connect(&ftp_client, HOST_FTP_SERVER_ADDRESS, "anonymous", "password", TX_WAIT_FOREVER); // THIS RETURNS CODE 0x38 - Socket not in connected State /* Check status. */ if (status != NX_SUCCESS) { error_counter++; return; } printf("Connected to the FTP Server\n"); Can anyone please advise how to go about debugging the socket unconnected state? I am able to ping between the board and host and the ftp server (board as server, with host as client) works. I am trying the do the reverse...FTP client (where board is the client and host is the server...the host is running FileZilla) I have debugged using wireshark on the host and am able to see this packet from the board (10.1.1.10) to the host (10.1.1.2) 552 320.209564 10.1.1.10 10.1.1.2 TCP 62 [TCP Retransmission] 30000 ? 21 [SYN] Seq=0 Win=2000 Len=0 MSS=1460 but there is no response from the host

Viewing all articles
Browse latest Browse all 59170

Trending Articles