Zoltan Farkas wrote:
How can I reset the size of the buffer?
By definition, every UDP packet must fit within a single IP packet, and
the size of those is governed by the MTU settings on your TCP/IP stack
and that of every hop between hosts.
Ethernet gives you 1500 bytes (1496 on a VLAN), and you have to save 20
bytes for IPv4's header and 8 bytes for UDP's header, leaving 1472 bytes
of UDP payload to work with.
There are ways to send bigger packets, but they're all
hardware-dependent. Personally I would try to avoid requiring more than
1450 bytes to get through in a single packet.
-0xe1a