Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: UDP buffer problems

www.cryer.info
Managed Newsgroup Archive

Re: UDP buffer problems

Subject:Re: UDP buffer problems
Posted by:"Silvia" (silv..@correo.com)
Date:21 Jun 2006 01:23:09

I am really sorry but in principle I am not allowed to show the code.

I have implemented an event that is raised when something is
received. In that event I have a counter, it is just an
integer that is being incremented each time this event is
raised. I have a breakpoint in a timer event, I know only one
burst of UDP datagrams has been sent, and in the timer's
breakpoint I can see the state of the counter. The timeout is big enough to know that all the frames could be received.

Processing for me means that I am inserting information in a
database and I am looking for some information in some tables.
Then I see how the information is saved and I see that
I have saved correctly the first 228 frames but after that a
lot of datagrams have been lost from 2000 frames I have only
saved 284.

Today I have not been processing this information
and have inserted an sleep instruction and I see that exiting
after that sleep instruction when I look for the counter it
is 636, without that sleep instruction the number of frames
received was 2000. I have made another test, inserting the
frame received in a StringList and I have received the 2000
frames as well.

Is there any way to modify the size of the UDP buffer in
Windows?

Thank you again,

          Silvia

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive