Diameter
User's Guide
Version 2.2
Example code can be found in the diameter application's examples subdirectory.