Results 1 to 3 of 3

Thread: Question on Winsock DataArrival

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Question on Winsock DataArrival

    When the DataArrival event fires. If I didn't get the data, does it stay in the receive buffer?

    I'm asking because I noticed that if I send over 8192 bytes of data, mutiple DataArrival Events fire, each 8192 bytes in size. I'm trying to decide whether I wait for all DataArrivals (concatenating everyting, SendComplete will send a packet for end concatenate/start processing) assuming the data stays in the receive buffer if I only Peek but not Get (my initial question), or if I'll Get and assemble the data in some other way.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    280
    Everytime a new packet is received, the buffer is replaced. Therefore, you must assemble the incoming data locally.
    OrdinaryGuy

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Oh well. Thanks. Do you know a site that discusses these small details on using Winsock? Someone suggested to use 100K packets but it seems I have to work with 8192 bytes only.

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