RE: Socket.Available and UDP datagrams

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Claire,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know if socket.available
only advertise when there are complete packets in its buffers. If there is
any misunderstanding, please feel free to let me know.

As far as I know, it has to return the size of the first message when a
complete message is available in buffer. According to MSDN, if you are
using a message-oriented socket type such as Dgram, the available data is
the first message in that buffer. If no data is queued in the network
buffer, Available returns 0.

So there are complete messages in buffer, it returns the size of the first
one. Or it returns 0.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

.



Relevant Pages

  • Re: SH7043 Maximum baud rate
    ... reception of chunks of dataeventually results in an Overrun ... buffer. ... my understanding is incorrect. ...
    (comp.arch.embedded)
  • Re: NdisRegisterAdapter
    ... It's a sanity check on a buffer size. ... without understanding the surrounding code. ... Paul T. ...
    (microsoft.public.windowsce.app.development)
  • Re: Create object in buffer w/ placement new?
    ... > My understanding is that only operator new returns memory that ... > constructing an object in a buffer is not allowed unless that ... > buffer was itself allocated by new? ...
    (comp.lang.cpp)
  • Re: syncing 3 pulse trains
    ... understanding is that the DAQmx Write vi just sends the data into a ... buffer - it's the Start Task vi that takes the buffer contents & ...
    (comp.lang.labview)
  • Re: Viewing and filtering a router log for GET/
    ... So if I am understanding you correctly, now that the buffer is enabled, ... How do I review the log once ... Prev by Date: ...
    (comp.dcom.sys.cisco)