Results 1 to 2 of 2

Thread: help again file transfer

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Canberra - Australia
    Posts
    8

    Question

    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?
    *Waco_Jaco*

  2. #2
    Member WEiRd0's Avatar
    Join Date
    Dec 2000
    Posts
    49
    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
  •  



Click Here to Expand Forum to Full Width