diff options
author | Anders Svensson <[email protected]> | 2012-08-28 15:05:09 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2012-08-28 15:05:09 +0200 |
commit | f7036408ed27781cc5d060d6966f07cb2a5e00f6 (patch) | |
tree | 078078420f98329f7a088043a17e1fb9686cb647 /lib/diameter/src/transport/diameter_etcp.erl | |
parent | d4eccdc4b544215f3706408bdeabe8c231780065 (diff) | |
parent | a907e66c93e54ffd9b4c8c84f500cd267a28ddd8 (diff) | |
download | otp-f7036408ed27781cc5d060d6966f07cb2a5e00f6.tar.gz otp-f7036408ed27781cc5d060d6966f07cb2a5e00f6.tar.bz2 otp-f7036408ed27781cc5d060d6966f07cb2a5e00f6.zip |
Merge branch 'anders/diameter/multiple_transport_modules/OTP-9885' into maint
* anders/diameter/multiple_transport_modules/OTP-9885:
Maintain service_info callback data in process dictionary
Maintain pid of started transport process in process dictionary
Minor spec and backwards compatibility fix
Update example code
Update documentation
Add diameter_transport for transport start indirection
Allow multiple transport_module and transport_config
Diffstat (limited to 'lib/diameter/src/transport/diameter_etcp.erl')
-rw-r--r-- | lib/diameter/src/transport/diameter_etcp.erl | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/diameter/src/transport/diameter_etcp.erl b/lib/diameter/src/transport/diameter_etcp.erl index d925d62545..cd62cf34fa 100644 --- a/lib/diameter/src/transport/diameter_etcp.erl +++ b/lib/diameter/src/transport/diameter_etcp.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2010-2011. All Rights Reserved. +%% Copyright Ericsson AB 2010-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -36,7 +36,9 @@ send/2, close/1, setopts/2, - port/1]). + sockname/1, + peername/1, + getstat/1]). %% child start -export([start_link/1]). @@ -113,10 +115,20 @@ close(Pid) -> setopts(_, _) -> ok. -%% port/1 +%% sockname/1 -port(_) -> - 3868. %% We have no local port: fake it. +sockname(_) -> + {error, ?MODULE}. + +%% peername/1 + +peername(_) -> + {error, ?MODULE}. + +%% getstat/1 + +getstat(_) -> + {error, ?MODULE}. %% start_link/1 |