What is the maximum size of one Datagram Packet java makes.
Iam implementing my own protocol with defined features which runs over UDP. For every packet i have defined a set of headers. Now these headers are to be defined in every packet. So unless i do not know the maximum size of every datagram packet, i cannot proceed
Please help!!

The value returned by getLength() is an int. The max int value is in the billions.
Have you tried creating a very large packet to see if there are system limits?