BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Friends | List of all members
fc::ip::address Class Reference

#include <ip.hpp>

Public Member Functions

 address (uint32_t _ip=0)
 
 address (const std::string &s)
 
addressoperator= (const std::string &s)
 
 operator std::string () const
 
 operator uint32_t () const
 
bool is_private_address () const
 
bool is_multicast_address () const
 
bool is_public_address () const
 

Friends

bool operator== (const address &a, const address &b)
 
bool operator!= (const address &a, const address &b)
 

Detailed Description

Definition at line 10 of file ip.hpp.

Constructor & Destructor Documentation

fc::ip::address::address ( uint32_t  _ip = 0)

Definition at line 10 of file ip.cpp.

fc::ip::address::address ( const std::string &  s)

Definition at line 13 of file ip.cpp.

Member Function Documentation

bool fc::ip::address::is_multicast_address ( ) const

224.0.0.0 to 239.255.255.255

Definition at line 125 of file ip.cpp.

bool fc::ip::address::is_private_address ( ) const
Returns
true if the ip is in the following ranges:

10.0.0.0 to 10.255.255.255 172.16.0.0 to 172.31.255.255 192.168.0.0 to 192.168.255.255 169.254.0.0 to 169.254.255.255

Definition at line 105 of file ip.cpp.

bool fc::ip::address::is_public_address ( ) const

!private & !multicast

Definition at line 133 of file ip.cpp.

fc::ip::address::operator std::string ( ) const

Definition at line 39 of file ip.cpp.

fc::ip::address::operator uint32_t ( ) const

Definition at line 47 of file ip.cpp.

address & fc::ip::address::operator= ( const std::string &  s)

Definition at line 29 of file ip.cpp.

Friends And Related Function Documentation

bool operator!= ( const address a,
const address b 
)
friend

Definition at line 25 of file ip.cpp.

bool operator== ( const address a,
const address b 
)
friend

Definition at line 22 of file ip.cpp.


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