///|
fn main {
  let wire = @utf8.encode(
    "PROXY TCP4 192.0.2.1 198.51.100.2 1234 443\r\n",
    bom=false,
  )
  let frame = @proxyproto.decode_v1(wire, @proxyproto.DecodePolicy::v1_only()).unwrap()
  match frame.header.address {
    Ipv4(endpoints) =>
      println(
        @proxyproto.format_ipv4(endpoints.source_address) +
        ":" +
        endpoints.source_port.to_string(),
      )
    _ => abort("expected IPv4 endpoints")
  }
}