[gameprogrammer] Re: recommended size of data for udp packets
- From: Vince <uberneen@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Tue, 16 Aug 2005 14:07:40 -0700 (PDT)
If I understand it correctly, a packet that is larger
than the client's MTU would be broken up and it's the
responsibility of the server to put it back together.
This is where the packet header comes in. We'd know
how much data to expect so we just recv() until we get
it all.
If that's not right I'd be very interested in hearing
the solution.
Vince~
--- Chris Nystrom <cnystrom@xxxxxxxxx> wrote:
> On 8/16/05, Bob Pendleton <bob@xxxxxxxxxxxxx> wrote:
> > On Tue, 2005-08-16 at 14:43 -0400, Roger D Vargas
> wrote:
> > > Whats the recommended size of data to send
> inside an UDP packet?
> >
> > I have never run into that question before. Cool!
> >
> > You can send any size you want up to 64KB. But,
> lots of large UDP
> > messages can really clog up a network. OTOH, if
> the packet size isn't at
> > least several times the header overhead (28 bytes
> IIRC) you are wasting
> > bandwidth by sending to much header and not enough
> data.
>
> Does not the UDP packet have to be smaller than the
> smallest MTU as well?
>
> Chris
>
> --
> E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx>
> Business: http://www.shaklee.net/austin
> Blog: http://conversazione.blogspot.com/
> AIM: nystromchris
>
>
> ---------------------
> To unsubscribe go to
> http://gameprogrammer.com/mailinglist.html
>
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Re: recommended size of data for udp packets
- From: Chris Nystrom
Other related posts:
- » [gameprogrammer] recommended size of data for udp packets
- » [gameprogrammer] Re: recommended size of data for udp packets
- » [gameprogrammer] Re: recommended size of data for udp packets
- » [gameprogrammer] Re: recommended size of data for udp packets
- » [gameprogrammer] Re: recommended size of data for udp packets
- » [gameprogrammer] Re: recommended size of data for udp packets
- [gameprogrammer] Re: recommended size of data for udp packets
- From: Chris Nystrom