aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_traffic_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-10-25 17:16:52 +0200
committerAnders Svensson <[email protected]>2011-11-10 16:23:50 +0100
commita138f8420ed0386c6200899254190600bf121f97 (patch)
treeab00965aa90b627755cc61a4ef3813f40850db2a /lib/diameter/test/diameter_traffic_SUITE.erl
parent30db65a00da4b0105faa760856286b42f0cde3e8 (diff)
downloadotp-a138f8420ed0386c6200899254190600bf121f97.tar.gz
otp-a138f8420ed0386c6200899254190600bf121f97.tar.bz2
otp-a138f8420ed0386c6200899254190600bf121f97.zip
Use trivial capabilities callback in traffic suite
Diffstat (limited to 'lib/diameter/test/diameter_traffic_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_traffic_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/diameter/test/diameter_traffic_SUITE.erl b/lib/diameter/test/diameter_traffic_SUITE.erl
index 522b00e781..55c5fc7c54 100644
--- a/lib/diameter/test/diameter_traffic_SUITE.erl
+++ b/lib/diameter/test/diameter_traffic_SUITE.erl
@@ -246,7 +246,7 @@ start_services(_Config) ->
ok = diameter:start_service(?CLIENT, ?SERVICE(?CLIENT)).
add_transports(Config) ->
- LRef = ?util:listen(?SERVER, tcp),
+ LRef = ?util:listen(?SERVER, tcp, [{capabilities_cb, fun capx/2}]),
CRef = ?util:connect(?CLIENT, tcp, LRef),
?util:write_priv(Config, "transport", {LRef, CRef}).
@@ -261,6 +261,10 @@ stop_services(_Config) ->
stop(_Config) ->
ok = diameter:stop().
+capx(_, #diameter_caps{origin_host = {OH,DH}}) ->
+ io:format("connection: ~p -> ~p~n", [DH,OH]),
+ ok.
+
%% ===========================================================================
%% Ensure that result codes have the expected values.