0

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!!

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by NormR1
0

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?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.