diff options
author | Anders Svensson <[email protected]> | 2012-07-30 01:47:23 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-08-23 13:57:24 +0200 |
commit | 30412e11d96828a519e11c200393dafb898010bc (patch) | |
tree | 1b5a5299ee6cdfba68ed67c5d2c5b4d222c8629a /lib/diameter/examples/code | |
parent | 6e84ba43a344599ec94852086f40f9b0eacc2c32 (diff) | |
download | otp-30412e11d96828a519e11c200393dafb898010bc.tar.gz otp-30412e11d96828a519e11c200393dafb898010bc.tar.bz2 otp-30412e11d96828a519e11c200393dafb898010bc.zip |
Update example code
Diffstat (limited to 'lib/diameter/examples/code')
-rw-r--r-- | lib/diameter/examples/code/peer.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/diameter/examples/code/peer.erl b/lib/diameter/examples/code/peer.erl index b07cd32b98..8fdeba57bf 100644 --- a/lib/diameter/examples/code/peer.erl +++ b/lib/diameter/examples/code/peer.erl @@ -117,6 +117,11 @@ server(T) -> %% %% Return config for a connecting transport. +client({all, LA, RA, RP}) -> + [[M,{K,C}], T] + = [client({P, LA, RA, RP}) || P <- [sctp,tcp]], + [M, {K,C,2000} | T]; + client({T, LA, RA, RP}) -> [{transport_module, tmod(T)}, {transport_config, [{ip, addr(LA)}, |