View Source esockd_proxy_protocol (esockd v5.9.3-rc.1)

[Proxy Protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)

Link to this section Summary

Link to this section Types

Link to this type

pp2_additional_field/0

View Source
-type pp2_additional_field() ::
    {pp2_alpn, binary()} |
    {pp2_authority, binary()} |
    {pp2_crc32c, integer()} |
    {pp2_netns, binary()} |
    {pp2_ssl, [pp2_additional_ssl_field()]}.
Link to this type

pp2_additional_ssl_field/0

View Source
-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

Link to this function

recv(Transport, Sock, Timeout)

View Source
-spec recv(module(), inet:socket() | #ssl_socket{}, timeout()) ->
        {ok, #proxy_socket{}} | {error, term()}.