Cogs.Foundation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Cogs::Network::AddrIn Class Reference

#include <Address.h>

Inheritance diagram for Cogs::Network::AddrIn:
Cogs::Network::Addr

Public Member Functions

 AddrIn ()
 
 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
 

Constructor & Destructor Documentation

◆ AddrIn() [1/7]

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

◆ AddrIn() [2/7]

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

◆ AddrIn() [3/7]

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

◆ AddrIn() [4/7]

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

◆ AddrIn() [5/7]

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

◆ AddrIn() [6/7]

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

References addr, and family().

◆ AddrIn() [7/7]

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

References addr, and family().

Member Function Documentation

◆ family()

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

Implements Cogs::Network::Addr.

Referenced by AddrIn().

◆ is_multicast()

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

Implements Cogs::Network::Addr.

◆ operator==()

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

References addr.

◆ operator[]()

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

◆ string()

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

Member Data Documentation

◆ addr

in_addr Cogs::Network::AddrIn::addr

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