Afficher un message
Vieux 17/10/2007, 01h09   #2
robertwessel2@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Windows XP:Quick Random UDP Sizes with winsock not allowed ?

On Oct 16, 9:16 am, "Skybuck Flying" <s...@hotmail.com> wrote:
> Hello,
>
> Tested the following:
>
> Random UDP Sizes 0 to 65000.
>
> Rapid packets after each other.
>
> Windows XP x64 and Windows XP 32 bit.
>
> Program seems to work normally.
>
> Sender and receiver more or less report the same size as well as ethereal.
>
> It seems windows does not allow sending many random udp sizes right after
> each other ?
>
> Or could it be some kind of strange threading bug ?
>
> Very strange.
>
> When sending fixed size large udp packets ip fragmentation does work and
> large udp packets get through.
>
> But random udp sizes not ??????? Very very very very very strange ?!
>
> (Only little packets arrive huh ?)



No such issues exist, although you may be running out of buffers on
either or both sides. The default behavior of basically all TCP/IP
stacks is to discard UDP packets when out of space.

The default buffer allocated by Windows to a UDP socket is 8K (which
is smaller than on many system), which would correspond to five 1400
bytes packets plus a bit. Try increasing it with setsockopt()/
SO_RCVBUF.


  Réponse avec citation
 
Page generated in 0,04953 seconds with 9 queries