RE: Socket.Available and UDP datagrams
- From: v-kevy@xxxxxxxxxxxxxxxxxxxx (Kevin Yu [MSFT])
- Date: Fri, 17 Jun 2005 07:15:31 GMT
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."
.
- References:
- Socket.Available and UDP datagrams
- From: Claire
- Socket.Available and UDP datagrams
- Prev by Date: C# Builder
- Next by Date: Re: System.NullReferenceException - But just look where...
- Previous by thread: Socket.Available and UDP datagrams
- Next by thread: Re: Socket.Available and UDP datagrams
- Index(es):
Relevant Pages
|