Re: Datagram Socket Speed Problem
- From: "Lionel Reyero" <LionelReyero@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Jun 2005 16:10:02 -0700
Thanks Paul, I will check that return value.
In case it says that the data has not been sent, I think I will make the
thread sleep for a while. But when it wake up, I would need to check if the
old data has been sent... should I invoke the SendTo() method again ,with the
same data ?
The best would be to invoke a method to check the amount of data in the
SendBuffer. Is this possible ? (can the IOControl() method do that?)
Thanks in advance,
Lionel
"Paul G. Tobey [eMVP]" wrote:
> I'd say that there's not a single thing wrong with the socket. You're
> asking it to send some data and, if the channel is busy, it's buffering it.
> When the buffer is full (because you're trying to send faster than the
> network bandwidth will allow), it tosses the packets. That's exactly the
> way I'd expect it to work. I bet that if you change the buffering, the
> amount of data actually delivered will probably change right along with the
> buffer settings. You should be looking at the return value from SendTo() to
> verify that it's actually sending the bytes that you are providing. When it
> doesn't, you need to decide what to do about it...
>
> Paul T.
>
.
- Follow-Ups:
- Re: Datagram Socket Speed Problem
- From: Paul G. Tobey [eMVP]
- Re: Datagram Socket Speed Problem
- References:
- Datagram Socket Speed Problem
- From: Lionel Reyero
- Re: Datagram Socket Speed Problem
- From: Paul G. Tobey [eMVP]
- Datagram Socket Speed Problem
- Prev by Date: Re: Finding App's path from NetCF
- Next by Date: Re: SendKeys Problem(s): SendKeys(str) drops period; Tone configurable?
- Previous by thread: Re: Datagram Socket Speed Problem
- Next by thread: Re: Datagram Socket Speed Problem
- Index(es):
Relevant Pages
|