I have a problem with the ftp
I am trying to put some data that is in a buffer to a ftp server.
The algorithm is something like this
Every 200 seconds try to put data to ftp server.
I start the transmission and mark the buffer as busy. If I get back some error event I try to retransmit the buffer. If the trasmission was succesful I mark the buffer as free and a new transmission can begin.
If I remove the GSM antenna so the signal is lost, when the signal came back I got this problem:
The thing is that after about 10 minutes (and this is repeting after 10 minutes) i get a socket error (it seems like an error that you receive when you try to connect to a socket that is already in use)
So could anybody help me out with this?
I guess my problem is what to do with the data i want to put to ftp, when to resend it if i can’t put it to ftp the first time (because the gsm signal is down)