What is: strtok(outBuf,"(,") , atoi(tStr), there is functions ??? They're not declared anywhere.
These are standard C functions.
And what mean hiPort = hiPort | loPort; ?
Those bytes are used to build the passive FTP data port (integer).
And what is the goal of this function...
That function reads the response after each send. The first character is the numeric return code. If the first character of that number is greater than 3, then the send (request) produced an error.
@lesto: I'm telling you that that the OP is doing fine with the w5100, but not the wifi shield. If you want to post the code for the telnet connection upload/download, may I suggest doing it now, or post it in the playground.
you should try to download file by telnet, so you'll see the request and the response from server (with are the same used by arduino)
This will help you to understand what is doing what in the code.
lesto:
you should try to download file by telnet, so you'll see the request and the response from server (with are the same used by arduino)
This will help you to understand what is doing what in the code.
...and the Arduino sketch code to do this is where?
those are the same command you should use by telnet. It is not necessary to complete successfully the transition (and doing so by telnet is very much tricky), but it is useful to understand what arduino ask and what is the expected response.
Sniffing the traffic while using a ftp client give more complete data on what is going on, but it is also more difficult as normal FTP client will probably use more than one thread and UDP