Permalink
Browse files

Update example code

  • Loading branch information...
1 parent 6e84ba4 commit 30412e11d96828a519e11c200393dafb898010bc Anders Svensson committed Jul 29, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/diameter/examples/code/peer.erl
View
5 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)},

0 comments on commit 30412e1

Please sign in to comment.