|
-
Dec 18th, 2000, 09:24 PM
#1
Thread Starter
New Member
how do programs such as BO2k, netbus, sub7 etc. set up file transfer between their client and server, as it seems to be quite reliable?
-
Dec 18th, 2000, 09:47 PM
#2
Member
hmm...im not sure how they do it but you could open the file in binary on the server side then send it in a chunk then wait to see if its finish sending then send the next chunk.
to see how to wait till one chuck is finished sue the code from sunnyl at
http://forums.vb-world.net/showthrea...threadid=44757
to open the file in binary
Code:
Dim Buffer(1 To 10) As Byte
Dim TotalBuffer As String
Open filename For Binary As #1
For x = 1 To LOF(1) / 10
'check to see if the last chunk has finished then
'continue with the following...
For z = 1 To 10
Get #1, , Buffer(z)
TotalBuffer = TotalBuffer & Buffer(z)
Next z
Winsock1.SendData TotalBuffer
Next x
Close #1
there is probably a better way to do this but im not sure how so just keep asking around
cya
 TIMMY 
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
|