Search Results for

    Show / Hide Table of Contents

    Class ProxyProtocolReader

    Parses a PROXY protocol v1 or v2 preamble.

    Inheritance
    object
    ProxyProtocolReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.Network
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public static class ProxyProtocolReader

    Methods

    | Edit this page View Source

    TryParse(ReadOnlySpan<byte>, out IPEndPoint?, out int)

    Declaration
    public static bool TryParse(ReadOnlySpan<byte> buffer, out IPEndPoint? client, out int consumed)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> buffer
    IPEndPoint client
    int consumed
    Returns
    Type Description
    bool
    | Edit this page View Source

    TryReadAsync(Socket, CancellationToken, IPEndPoint?)

    Reads exactly the preamble and nothing after it, so the first application bytes (for example a TLS ClientHello) stay in the socket. Returns false for a malformed or truncated preamble.

    Declaration
    public static ValueTask<bool> TryReadAsync(Socket socket, CancellationToken cancellationToken, IPEndPoint? client = null)
    Parameters
    Type Name Description
    Socket socket
    CancellationToken cancellationToken
    IPEndPoint client
    Returns
    Type Description
    ValueTask<bool>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX