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?
Printable View
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?
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
there is probably a better way to do this but im not sure how so just keep asking aroundCode: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
cya