ProxyProtocol::One Namespace Reference

Functions

static Parsed Parse (const SBuf &buf)
 extracts PROXY protocol v1 header from the given buffer More...
 
static void ExtractIp (Parser::Tokenizer &tok, Ip::Address &addr)
 
static void ExtractPort (Parser::Tokenizer &tok, Ip::Address &addr, const bool trailingSpace)
 
static void ParseAddresses (Parser::Tokenizer &tok, Header::Pointer &header)
 

Variables

static const SBuf Magic ("PROXY", 5)
 magic octet prefix for PROXY protocol version 1 More...
 

Function Documentation

◆ ExtractIp()

void ProxyProtocol::One::ExtractIp ( Parser::Tokenizer tok,
Ip::Address addr 
)
static

Definition at line 54 of file Parser.cc.

References SBuf::c_str(), Ip::Address::GetHostByName(), CharacterSet::HEXDIG, and TexcHere.

Referenced by ParseAddresses().

◆ ExtractPort()

void ProxyProtocol::One::ExtractPort ( Parser::Tokenizer tok,
Ip::Address addr,
const bool  trailingSpace 
)
static

Definition at line 72 of file Parser.cc.

References max(), port, Ip::Address::port(), and TexcHere.

Referenced by ParseAddresses().

◆ Parse()

ProxyProtocol::Parsed ProxyProtocol::One::Parse ( const SBuf buf)
static

◆ ParseAddresses()

void ProxyProtocol::One::ParseAddresses ( Parser::Tokenizer tok,
Header::Pointer header 
)
static

Definition at line 89 of file Parser.cc.

References ExtractIp(), ExtractPort(), and TexcHere.

Variable Documentation

◆ Magic

const SBuf ProxyProtocol::One::Magic("PROXY", 5) ( "PROXY"  ,
 
)
static

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors