diameter_gen_base_rfc3588

Types


avp() = non_grouped_avp() | grouped_avp()

avp_name() = atom()

avp_record() = tuple()

avp_values() = [{avp_name(), term()}]

grouped_avp() = nonempty_improper_list(#diameter_avp{}, [avp()])

non_grouped_avp() = #diameter_avp{}

parent_name() = atom()

parent_record() = tuple()

Functions


encode_avps(Name::parent_name(), Vals::parent_record() | avp_values()) -> binary() | no_return()

decode_avps(Name::parent_name(), Diameter_avp::[#diameter_avp{}]) -> {parent_record(), [avp()], Failed}

  • Failed = [{5000..5999, #diameter_avp{}}]

grouped_avp(X1::decode, Name::avp_name(), Data::binary()) -> {avp_record(), [avp()]}

name() -> term()

id() -> term()

vendor_id() -> term()

vendor_name() -> term()

msg_name(X1, X2) -> term()

msg_header(X1) -> term()

rec2msg(X1) -> term()

msg2rec(X1) -> term()

name2rec(T) -> term()

avp_name(X1, X2) -> term()

avp_arity(X1, X2) -> term()

avp_header(X1) -> term()

avp(T, Data, X3) -> term()

enumerated_avp(X1, X2, X3) -> term()

empty_value(Name) -> term()

dict() -> term()