# Address.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/network/Address.hpp"

# Address

Network address.

namespace oatpp { namespace network { 
  class Address {}
}}

# Fields

Type Name Summary
oatpp::String host Host name without schema and port. Ex.: "oatpp.io", "127.0.0.1", "localhost".
v_uint16 port Port.
Family family Family Address::Family.

# Methods

Return Type Name Summary
[none] Address Constructor.

# Address::host

Host name without schema and port. Ex.: "oatpp.io", "127.0.0.1", "localhost".

oatpp::String host

# Address::port

Port.

v_uint16 port

# Address::family

Family Address::Family.

Family family

# Address::Address

Constructor.

  • @param pHost
  • @param pPort
  • @param pFamily

Address(const oatpp::String& pHost, v_uint16 pPort, Family pFamily = UNSPEC)

# Address::Family

Address family.

namespace oatpp { namespace network { 
  class Address {}
}}

# Address::Family::IP_4

IPv4.

IP_4 = 0

# Address::Family::IP_6

IPv6.

IP_6 = 1

# Address::Family::UNSPEC

Unspecified.

UNSPEC = 2