CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Posts
    21

    sending files through winsock

    I am making a client server type application using the winsock control and would like to be able to transfer files via it. Could someone tell me where i can find the script to do this?? I have found a couple of examples but could never get them to work.


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: sending files through winsock

    You will need to send the file in little peaces(server-side) and then paste it back together(client-side). I'm currently working on one of these, I placed the code I have on the internet. You can download it at http://home.planetinternet.be/~aerts1/filesend.zip It is able to send files from the server to the client. Resuming files is currently still in development. So when your send, make sure the file does not exist client side, because the chance that it will be corrupt is big.

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured