Results 1 to 2 of 2

Thread: Sending files with winsock?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    12
    I am very new to using the winsock control. What I
    want to know is if there is a way to send whole files
    using the control and if so, how do you do this?

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    102
    if you can send strings (bits and bytes)
    there's no reason why you can't send files.

    firstly, make sure you use the TCP protocol because
    it's much "safer" for files than UDP.

    i think there's an article in this vb-world about it,
    so you can copy-paste already written code.

    the idea is to read the file,
    send the data by blocks (or byte by byte if you insist),
    and construct it again on the other side.

    itay.



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