aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/examples/code/peer.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-07-30 01:47:23 +0200
committerAnders Svensson <[email protected]>2012-08-23 13:57:24 +0200
commit30412e11d96828a519e11c200393dafb898010bc (patch)
tree1b5a5299ee6cdfba68ed67c5d2c5b4d222c8629a /lib/diameter/examples/code/peer.erl
parent6e84ba43a344599ec94852086f40f9b0eacc2c32 (diff)
downloadotp-30412e11d96828a519e11c200393dafb898010bc.tar.gz
otp-30412e11d96828a519e11c200393dafb898010bc.tar.bz2
otp-30412e11d96828a519e11c200393dafb898010bc.zip
Update example code
Diffstat (limited to 'lib/diameter/examples/code/peer.erl')
-rw-r--r--lib/diameter/examples/code/peer.erl5
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)},