main-apidocs-erlang-estdlib-ssl.md
Behaviours: gen_server.
client_option() = {server_name_indication, sni()} | {verify, verify_none}
host() = hostname() | ip_address()
hostname() = string()
ip_address() = inet:ip_address()
reason() = any()
sni() = hostname() | disabled
socket_option() = gen_tcp:connect_option() | gen_tcp:listen_option()
abstract datatype : sslsocket()
tls_client_option() = client_option() | socket_option()
| close/1 | | | connect/3 | | | handle_call/3 | | | handle_cast/2 | | | handle_info/2 | | | init/1 | | | recv/2 | | | send/2 | | | start/0 | | | stop/0 | | | terminate/2 | |
close(X1::sslsocket()) -> ok
connect(Host::host(), Port::inet:port_number(), TLSOptions::[tls_client_option()]) -> {ok, sslsocket()} | {error, reason()}
handle_call(X1, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Msg, State) -> any()
init(X1) -> any()
recv(Socket::sslsocket(), Length::non_neg_integer()) -> ok | {error, reason()}
send(Socket::sslsocket(), Data::iodata()) -> ok | {error, reason()}
start() -> ok
stop() -> ok
terminate(Reason, State) -> any()