PDA

Click to See Complete Forum and Search --> : File Transfer question


dBlues
Oct 28th, 2007, 05:16 AM
Hey ,

I'm working in my file transfer ,

my question is :

when Server send a packet , must Client replay and say that the packet received to allow the server to send the next packet ? or the Server may send packet after packet without waiting for the client to raply ?

thnx.

Al42
Oct 29th, 2007, 05:28 PM
That depends on the protocol - which you normally don't write, so you normally needn't be concerned.

What language are you writing in and what method are you using to do the file transfer? Are you using an API? Any controls?

dBlues
Oct 29th, 2007, 06:22 PM
I use Winsock ,

and this is the code I use :

If EOF(x) = False Then

data = Input(3072, x)
SD "ftransferup}|{data}|{" & data

Else

Close #x
SD "ftransferup}|{data}|{" & "}eof{"

End If

thnx Al42