= proplists:property()
+ socketoption() =
+ proplists:property()
The default socket options are
[{mode,list},{packet, 0},{header, 0},{active, true}].
For valid options, see the
@@ -83,32 +83,34 @@
gen_tcp(3) manual pages
in Kernel.
- ssloption()
- = {verify, verify_type()}
- | {verify_fun, {fun(), term()}}
- | {fail_if_no_peer_cert, boolean()} {depth, integer()}
- | {cert, public_key:der_encoded()}
- | {certfile, path()}
- | {key, {'RSAPrivateKey'| 'DSAPrivateKey' | 'ECPrivateKey'
- | 'PrivateKeyInfo', public_key:der_encoded()}}
- | {keyfile, path()}
- | {password, string()}
- | {cacerts, [public_key:der_encoded()]}
- | {cacertfile, path()}
- | {dh, public_key:der_encoded()}
- | {dhfile, path()}
- | {ciphers, ciphers()}
- | {user_lookup_fun, {fun(), term()}}, {psk_identity, string()},
- {srp_identity, {string(), string()}}
- | {reuse_sessions, boolean()}
- | {reuse_session, fun()} {next_protocols_advertised, [binary()]}
- | {client_preferred_next_protocols, {client | server,
- [binary()]} | {client | server, [binary()], binary()}}
- | {log_alert, boolean()}
- | {server_name_indication, hostname() | disable}
-
- transportoption()
- = {cb_info, {CallbackModule::atom(), DataTag::atom(),
+ ssloption() =
+ -
+
{verify, verify_type()}
+ | {verify_fun, {fun(), term()}}
+ | {fail_if_no_peer_cert, boolean()} {depth, integer()}
+ | {cert, public_key:der_encoded()}
+ | {certfile, path()}
+ | {key, {'RSAPrivateKey'| 'DSAPrivateKey' | 'ECPrivateKey'
+ | 'PrivateKeyInfo', public_key:der_encoded()}}
+ | {keyfile, path()}
+ | {password, string()}
+ | {cacerts, [public_key:der_encoded()]}
+ | {cacertfile, path()}
+ | {dh, public_key:der_encoded()}
+ | {dhfile, path()}
+ | {ciphers, ciphers()}
+ | {user_lookup_fun, {fun(), term()}}, {psk_identity, string()},
+ {srp_identity, {string(), string()}}
+ | {reuse_sessions, boolean()}
+ | {reuse_session, fun()} {next_protocols_advertised, [binary()]}
+ | {client_preferred_next_protocols, {client | server,
+ [binary()]} | {client | server, [binary()], binary()}}
+ | {log_alert, boolean()}
+ | {server_name_indication, hostname() | disable}
+
+
+ transportoption() =
+ {cb_info, {CallbackModule::atom(), DataTag::atom(),
ClosedTag::atom(), ErrTag:atom()}}
Defaults to {gen_tcp, tcp, tcp_closed, tcp_error}. Can be used
to customize the transport layer. The callback module must implement a
@@ -129,57 +131,57 @@