View Source esockd_proxy_protocol (esockd v5.9.3-rc.1)
Link to this section Summary
Link to this section Types
-type pp2_additional_field() :: {pp2_alpn, binary()} | {pp2_authority, binary()} | {pp2_crc32c, integer()} | {pp2_netns, binary()} | {pp2_ssl, [pp2_additional_ssl_field()]}.
-type pp2_additional_ssl_field() ::
{pp2_ssl_client, boolean()} |
{pp2_ssl_client_cert_conn, boolean()} |
{pp2_ssl_client_cert_sess, boolean()} |
{pp2_ssl_verify, success | failed} |
{pp2_ssl_version, binary()} |
{pp2_ssl_cn, binary()} |
{pp2_ssl_cipher, binary()} |
{pp2_ssl_sig_alg, binary()} |
{pp2_ssl_key_alg, binary()}.
Link to this section Functions
-spec recv(module(), inet:socket() | #ssl_socket{}, timeout()) -> {ok, #proxy_socket{}} | {error, term()}.