From 3b8adac9179ea32c2f78860c621289cb4b2bb57e Mon Sep 17 00:00:00 2001
From: Anders Svensson
Date: Fri, 23 Nov 2012 14:58:39 +0100
Subject: Add missing diameter_codec(3) content
---
lib/diameter/doc/src/diameter_codec.xml | 54 ++++++++++++++++++++++++++++++---
1 file changed, 49 insertions(+), 5 deletions(-)
diff --git a/lib/diameter/doc/src/diameter_codec.xml b/lib/diameter/doc/src/diameter_codec.xml
index fb245936cf..4a77d5435b 100644
--- a/lib/diameter/doc/src/diameter_codec.xml
+++ b/lib/diameter/doc/src/diameter_codec.xml
@@ -266,24 +266,66 @@ Fields have the following types.
-header = &header;
+header = &header; | undefined
-
+
+The Diameter header of the message.
+Can be (and typically should be) undefined for an outgoing
+message in a non-relay application, in which case diameter provides
+appropriate values.
-msg = &message;
+avps = [&avp;] | undefined
-
+
+The AVPs of the message.
+Ignored for an outgoing message if the msg field is set to a
+value other than undefined.
+
+
+msg = &message; | undefined
+-
+
+The incoming/outgoing message.
+For an incoming message, a record if the message can be
+decoded in a non-relay application, undefined otherwise.
+For an outgoing message, setting a [&header; | &avp;] list is
+equivalent to setting the header and avps fields to the
+corresponding values.
+
+
+
+A record-valued msg field does not imply an absence of
+decode errors.
+The errors field should also be examined.
+
+
bin = binary()
-
+
+The incoming message prior to encode or the outgoing message after
+encode.
-errors = [&dict_Unsigned32; | {&dict_Unsigned32;, avp()}]
+errors = [5000..5999 | {5000..5999, avp()}]
-
+
+Errors detected at decode of an incoming message, as identified by
+a corresponding 5xxx series Result-Code (Permanent Failures).
+For an incoming request, these should be used to formulate an
+appropriate answer as documented for the &app_handle_request;
+callback in &man_app;.
+For an incoming answer, the &mod_application_opt;
+answer_errors determines the behaviour.
transport_data = term()
-
+
+An arbitrary term of meaning only to the transport process in
+question, as documented in &man_transport;.
@@ -299,11 +341,12 @@ Fields have the following types.