AnyP Namespace Reference

Classes

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 &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 18 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/4]

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

◆ operator<<() [2/4]

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

◆ operator<<() [3/4]

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

Definition at line 79 of file UriScheme.h.

References AnyP::UriScheme::image().

◆ operator<<() [4/4]

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 51 of file ProtocolType.h.

References PROTO_MAX, PROTO_NONE, and ProtocolType_str.

Variable Documentation

◆ ProtocolType_str

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors