diff options
author | Anders Svensson <[email protected]> | 2011-10-25 17:16:52 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-11-10 16:23:50 +0100 |
commit | a138f8420ed0386c6200899254190600bf121f97 (patch) | |
tree | ab00965aa90b627755cc61a4ef3813f40850db2a /lib/diameter/test/diameter_traffic_SUITE.erl | |
parent | 30db65a00da4b0105faa760856286b42f0cde3e8 (diff) | |
download | otp-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.erl | 6 |
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. |