diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/manual/ranch_transport.asciidoc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/src/manual/ranch_transport.asciidoc b/doc/src/manual/ranch_transport.asciidoc index a9322f4..cbcea42 100644 --- a/doc/src/manual/ranch_transport.asciidoc +++ b/doc/src/manual/ranch_transport.asciidoc @@ -160,6 +160,29 @@ Change options for the given socket. This is mainly useful for switching to active or passive mode or to set protocol-specific options. +=== getopts(CSocket, SockOpts) -> {ok, SockOptValues} | {error, atom()} + +CSocket = any():: Socket for this connection. +SockOpts = [atom]:: Socket option names. +SockOptValues = list():: Socket options. + +Get options for the given socket. + +=== getstat(CSocket) -> {ok, SockStatValues} | {error, atom()} + +CSocket = any():: Socket for this connection. +SockStatValues = list():: Socket statistics. + +Get statistics for the given socket. + +=== getstat(CSocket, SockStats) -> {ok, SockStatValues} | {error, atom()} + +CSocket = any():: Socket for this connection. +SockStats = [atom()]:: Socket statistic names. +SockStatValues = list():: Socket statistics. + +Get statistics for the given socket. + === shutdown(CSocket, How) -> ok | {error, atom()} CSocket = any():: Socket for this connection. |