Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Network::AddrIn Class Reference
Inheritance diagram for Cogs::Network::AddrIn:
Cogs::Network::Addr

Public Member Functions

 AddrIn (in_addr addr)
 
 AddrIn (uint8_t ip[4])
 
 AddrIn (uint32_t ip)
 
 AddrIn (uint8_t a, uint8_t b, uint8_t c, uint8_t d)
 
 AddrIn (const char *str)
 
 AddrIn (const std::string &str)
 
virtual Family family () const override
 
virtual std::string string () const override
 
virtual bool is_multicast () const override
 
uint8_t operator[] (size_t i) const
 
bool operator== (const AddrIn &rhs) const
 
virtual Family family () const =0
 
virtual std::string string () const =0
 
virtual bool is_multicast () const =0
 

Public Attributes

in_addr addr
 

Detailed Description

Definition at line 39 of file Address.h.

Constructor & Destructor Documentation

◆ AddrIn() [1/7]

Cogs::Network::AddrIn::AddrIn ( )
inline

Definition at line 41 of file Address.h.

◆ AddrIn() [2/7]

Cogs::Network::AddrIn::AddrIn ( in_addr  addr)
inline

Definition at line 42 of file Address.h.

◆ AddrIn() [3/7]

Cogs::Network::AddrIn::AddrIn ( uint8_t  ip[4])
inline

Definition at line 43 of file Address.h.

◆ AddrIn() [4/7]

Cogs::Network::AddrIn::AddrIn ( uint32_t  ip)
inline

Definition at line 44 of file Address.h.

◆ AddrIn() [5/7]

Cogs::Network::AddrIn::AddrIn ( uint8_t  a,
uint8_t  b,
uint8_t  c,
uint8_t  d 
)
inline

Definition at line 48 of file Address.h.

◆ AddrIn() [6/7]

Cogs::Network::AddrIn::AddrIn ( const char *  str)

Definition at line 9 of file Address.cpp.

◆ AddrIn() [7/7]

Cogs::Network::AddrIn::AddrIn ( const std::string &  str)

Definition at line 15 of file Address.cpp.

Member Function Documentation

◆ family()

virtual Family Cogs::Network::AddrIn::family ( ) const
inlineoverridevirtual

Implements Cogs::Network::Addr.

Definition at line 55 of file Address.h.

◆ is_multicast()

virtual bool Cogs::Network::AddrIn::is_multicast ( ) const
inlineoverridevirtual

Implements Cogs::Network::Addr.

Definition at line 57 of file Address.h.

◆ operator==()

bool Cogs::Network::AddrIn::operator== ( const AddrIn rhs) const
inline

Definition at line 59 of file Address.h.

◆ operator[]()

uint8_t Cogs::Network::AddrIn::operator[] ( size_t  i) const
inline

Definition at line 58 of file Address.h.

◆ string()

std::string Cogs::Network::AddrIn::string ( ) const
overridevirtual

Implements Cogs::Network::Addr.

Definition at line 27 of file Address.cpp.

Member Data Documentation

◆ addr

in_addr Cogs::Network::AddrIn::addr

Definition at line 61 of file Address.h.


The documentation for this class was generated from the following files: