|
-
Oct 28th, 2007, 05:16 AM
#1
Thread Starter
Lively Member
File Transfer question
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.
-
Oct 29th, 2007, 05:28 PM
#2
Re: File Transfer question
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?
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Oct 29th, 2007, 06:22 PM
#3
Thread Starter
Lively Member
Re: File Transfer question
I use Winsock ,
and this is the code I use :
Code:
If EOF(x) = False Then
data = Input(3072, x)
SD "ftransferup}|{data}|{" & data
Else
Close #x
SD "ftransferup}|{data}|{" & "}eof{"
End If
thnx Al42
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|