Re: Datagram Socket Speed Problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
>

.



Relevant Pages

  • Re: Datagram Socket Speed Problem
    ... didn't have room for the packet, ... > Thanks Paul, I will check that return value. ... > The best would be to invoke a method to check the amount of data in the ... I bet that if you change the buffering, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Unlimited IIS6 Buffer Limit
    ... It was never unlimited in IIS5; it was almost certainly limited by the ... amount of virtual memory the server had avaialble. ... buffering in ASP thus making the server send the data as it was assembled. ...
    (microsoft.public.inetserver.iis)
  • Re: measuring pH of a solution
    ... of a small amount of solution, ... Any recommendations/product recommendations greatly ... What range needs to be covered? ... Buffering is ...
    (sci.med.pharmacy)
  • Re: communication with a daemon
    ... the client process is killed, the sent message from the client is printed. ... but this sounds like a buffering problem. ... It is usually a bad idea to mix higher level I/O functions (e.g. stdio, ... Paul D. Boyle ...
    (comp.os.linux.development.apps)
  • Re: Views
    ... If the underlying table is open with buffering before the view, there are two layers of buffering to satisfy before the table is updated. ... Dave Tiffany ... Paul wrote: ...
    (microsoft.public.fox.helpwanted)