diff options
author | Lars Thorsen <[email protected]> | 2011-12-05 15:02:51 +0100 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2011-12-05 15:02:51 +0100 |
commit | 348a15766cdec257d27adbddeb55926ca52e2fd9 (patch) | |
tree | 31713ad933f3b810ddc21e07c71754a3834f946e /lib/orber/src/orber_tb.erl | |
parent | 27e3d767e0dd10ab4360559cfeead6977feddda6 (diff) | |
parent | 8ad9f2bee9ca779988aa5634906751b30b07156e (diff) | |
download | otp-348a15766cdec257d27adbddeb55926ca52e2fd9.tar.gz otp-348a15766cdec257d27adbddeb55926ca52e2fd9.tar.bz2 otp-348a15766cdec257d27adbddeb55926ca52e2fd9.zip |
Merge branch 'lars/orber/ssl-options/OTP-9773'
* lars/orber/ssl-options/OTP-9773:
[orber] Change the option handling for ssl
Diffstat (limited to 'lib/orber/src/orber_tb.erl')
-rw-r--r-- | lib/orber/src/orber_tb.erl | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/lib/orber/src/orber_tb.erl b/lib/orber/src/orber_tb.erl index e6d5ee4400..cce95f7237 100644 --- a/lib/orber/src/orber_tb.erl +++ b/lib/orber/src/orber_tb.erl @@ -39,7 +39,8 @@ -compile({no_auto_import,[error/2]}). -export([wait_for_tables/1, wait_for_tables/2, wait_for_tables/3, is_loaded/0, is_loaded/1, is_running/0, is_running/1, - info/2, error/2, unique/1, keysearch/2, keysearch/3]). + info/2, error/2, unique/1, keysearch/2, keysearch/3, + check_illegal_tcp_options/1]). %%---------------------------------------------------------------------- %% Internal exports @@ -179,6 +180,38 @@ error(Format, Args) -> Args). + + + +%%---------------------------------------------------------------------- +%% function : check_illegal_tcp_options/1 +%% Arguments: +%% Returns : +%% Exception: +%% Effect : +%%---------------------------------------------------------------------- +check_illegal_tcp_options(Options) -> + check_illegal_tcp_options(Options, []). + +check_illegal_tcp_options([],[]) -> + ok; +check_illegal_tcp_options([],IllegalOpts) -> + {error, IllegalOpts}; +check_illegal_tcp_options([{active, V} |T], IllegalOpts) -> + check_illegal_tcp_options(T,[{active, V} |IllegalOpts]); +check_illegal_tcp_options([{packet, V} |T], IllegalOpts) -> + check_illegal_tcp_options(T,[{packet, V} |IllegalOpts]); +check_illegal_tcp_options([{mode, V} |T], IllegalOpts) -> + check_illegal_tcp_options(T,[{mode, V} |IllegalOpts]); +check_illegal_tcp_options([list |T], IllegalOpts) -> + check_illegal_tcp_options(T,[list |IllegalOpts]); +check_illegal_tcp_options([binary |T], IllegalOpts) -> + check_illegal_tcp_options(T,[binary |IllegalOpts]); +check_illegal_tcp_options([{reuseaddr, V} |T], IllegalOpts) -> + check_illegal_tcp_options(T,[{reuseaddr, V} |IllegalOpts]); +check_illegal_tcp_options([H|T], IllegalOpts) -> + check_illegal_tcp_options(T, IllegalOpts). + %%---------------------------------------------------------------------- %% Internal functions %%---------------------------------------------------------------------- |