From 84fd2c325c9e38b5ea2307b6133c3d15b33a3241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 23 Dec 2015 12:00:08 +0100 Subject: Add ssl:getstat/1 and ssl:getstat/2 These functions call getstat on the underlying TCP socket. The only way to do this before now was to use a hack, either by looking inside the #sslsocket{} record directly, or by not using the SSL listen/accept functions and upgrading from a TCP socket that is kept around for the purpose of calling getstat later on. --- lib/ssl/doc/src/ssl.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/ssl/doc/src') diff --git a/lib/ssl/doc/src/ssl.xml b/lib/ssl/doc/src/ssl.xml index 62f6263e9e..bed82cdb91 100644 --- a/lib/ssl/doc/src/ssl.xml +++ b/lib/ssl/doc/src/ssl.xml @@ -900,6 +900,23 @@ fun(srp, Username :: string(), UserState :: term()) -> + + getstat(Socket) -> + {ok, OptionValues} | {error, inet:posix()} + getstat(Socket, OptionNames) -> + {ok, OptionValues} | {error, inet:posix()} + Get one or more statistic options for a socket + + Socket = sslsocket() + OptionNames = [atom()] + OptionValues = [{inet:stat_option(), integer()}] + + +

Gets one or more statistic options for the underlying TCP socket.

+

See inet:getstat/2 for statistic options description.

+
+
+ listen(Port, Options) -> {ok, ListenSocket} | {error, Reason} -- cgit v1.2.3