This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Info on UDP checksums Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Info on UDP checksums" Watch "Info on UDP checksums" New topic

Info on UDP checksums

Neil Forrest

Joined: Apr 03, 2005
Posts: 13
Can anyone steer me to easy to follow information on doing checksums and in particular with UDP?
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
Well, you can calculate a checksum using two different classes in Java. You can use the or the implementations.

Both of them implement

Now, when it comes to UDP Datgram packets. You can update the Checksum until you have sent or received all the data, and then calculate the checksum.

Somewhat like this:

Good luck, comrade!
[ June 09, 2006: Message edited by: Edwin Dalorzo ]
I agree. Here's the link:
subject: Info on UDP checksums
It's not a secret anymore!