Results 1 to 17 of 17

Thread: Sending Byte array via winsock??

Threaded View

  1. #6
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    First of all, your array should be global (or static) on the receiving side, first you should tell the other app, how much you are about to send. Then send the data.

    On the receiver side, get the length, store it in a long, then get the (chenked EDIT: Chunked) data, until it accumulated to the length that you are supposed to get. Then use the buffer.

    But... if you want a simple solution, you can download the ActiveX I already made, that does what you need and more. The ActiveX also encrypts and compresses data, so it does more than you actually need. And plus that for every send you get a DataArrival event with ALL the data. And if you don't get the data once, the data is NOT lost... And if you send 1MByte 2 times, on the receiver size you will get only 2 events, and every one with 1MByte.
    Just click on the link in my signature to get it. You will also find some documentation for it there.
    Last edited by CVMichael; Dec 27th, 2002 at 03:08 PM.

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