AnyP Namespace Reference

Classes

class  Bracketed
 
class  Host
 either a domain name (as defined in DNS RFC 1034) or an IP address More...
 
class  PortCfg
 
class  ProtocolVersion
 
class  TrafficMode
 
class  Uri
 
class  UriScheme
 

Typedefs

typedef RefCount< PortCfgPortCfgPointer
 
using KnownPort = uint16_t
 validated/supported port number; these values are never zero More...
 
using Port = std::optional< KnownPort >
 validated/supported port number (if any) More...
 

Enumerations

enum  ProtocolType {
  PROTO_NONE = 0,
  PROTO_HTTP,
  PROTO_FTP,
  PROTO_HTTPS,
  PROTO_COAP,
  PROTO_COAPS,
  PROTO_WAIS,
  PROTO_ICP,
  PROTO_HTCP,
  PROTO_URN,
  PROTO_WHOIS,
  PROTO_ICY,
  PROTO_TLS,
  PROTO_SSL,
  PROTO_AUTHORITY_FORM,
  PROTO_UNKNOWN,
  PROTO_MAX
}
 

Functions

std::ostream & operator<< (std::ostream &, const Host &)
 
std::ostream & operator<< (std::ostream &, const Bracketed &)
 
std::ostream & operator<< (std::ostream &os, ProtocolType const &p)
 
std::ostream & operator<< (std::ostream &os, const ProtocolVersion &v)
 
std::ostream & operator<< (std::ostream &os, const Uri &url)
 
std::ostream & operator<< (std::ostream &os, const UriScheme &scheme)
 

Variables

const char * ProtocolType_str []
 

Typedef Documentation

◆ KnownPort

using AnyP::KnownPort = typedef uint16_t

Definition at line 23 of file UriScheme.h.

◆ Port

using AnyP::Port = typedef std::optional<KnownPort>

Definition at line 26 of file UriScheme.h.

◆ PortCfgPointer

Definition at line 17 of file forward.h.

Enumeration Type Documentation

◆ ProtocolType

List of all protocols known and supported. This is a combined list. It is used as type-codes where needed and the AnyP::ProtocolType_Str array of strings may be used for display

Enumerator
PROTO_NONE 
PROTO_HTTP 
PROTO_FTP 
PROTO_HTTPS 
PROTO_COAP 
PROTO_COAPS 
PROTO_WAIS 
PROTO_ICP 
PROTO_HTCP 
PROTO_URN 
PROTO_WHOIS 
PROTO_ICY 
PROTO_TLS 
PROTO_SSL 
PROTO_AUTHORITY_FORM 
PROTO_UNKNOWN 
PROTO_MAX 

Definition at line 23 of file ProtocolType.h.

Function Documentation

◆ operator<<() [1/6]

std::ostream & AnyP::operator<< ( std::ostream &  os,
const Bracketed hostWrapper 
)

prints Host value without square brackets around an IPv6 address (even when the Host value is an IPv6 address);

See also
Bracketed

Definition at line 99 of file Host.cc.

References AnyP::Bracketed::host, and AnyP::Host::ip().

◆ operator<<() [2/6]

std::ostream & AnyP::operator<< ( std::ostream &  os,
const Host host 
)

prints Host value without square brackets around an IPv6 address (even when the Host value is an IPv6 address);

See also
Bracketed

Definition at line 80 of file Host.cc.

References Assure, AnyP::Host::domainName(), AnyP::Host::ip(), and MAX_IPSTRLEN.

◆ operator<<() [3/6]

std::ostream& AnyP::operator<< ( std::ostream &  os,
const ProtocolVersion v 
)
inline

◆ operator<<() [4/6]

std::ostream& AnyP::operator<< ( std::ostream &  os,
const Uri url 
)
inline

◆ operator<<() [5/6]

std::ostream& AnyP::operator<< ( std::ostream &  os,
const UriScheme scheme 
)
inline

Definition at line 80 of file UriScheme.h.

References AnyP::UriScheme::image().

◆ operator<<() [6/6]

std::ostream& AnyP::operator<< ( std::ostream &  os,
ProtocolType const &  p 
)
inline

Display the registered Protocol Type (in upper case). If the protocol is not a registered AnyP::ProtocolType nothing will be displayed. The caller is responsible for any alternative text.

Definition at line 52 of file ProtocolType.h.

References PROTO_MAX, PROTO_NONE, and ProtocolType_str.

Variable Documentation

◆ ProtocolType_str

 

Introduction

Documentation

Support

Miscellaneous