Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::ip Namespace Reference

Classes

class  address
 
class  endpoint
 

Functions

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

Function Documentation

◆ operator!=() [1/2]

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

Definition at line 25 of file ip.cpp.

25 {
26 return uint32_t(a) != uint32_t(b);
27 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
unsigned int uint32_t
Definition stdint.h:126

◆ operator!=() [2/2]

bool fc::ip::operator!= ( const endpoint & a,
const endpoint & b )

Definition at line 60 of file ip.cpp.

60 {
61 return a._port != b._port || a._ip != b._ip;
62 }

◆ operator<()

bool fc::ip::operator< ( const endpoint & a,
const endpoint & b )

Definition at line 64 of file ip.cpp.

65 {
66 return uint32_t(a.get_address()) < uint32_t(b.get_address()) ||
67 (uint32_t(a.get_address()) == uint32_t(b.get_address()) &&
68 uint32_t(a.port()) < uint32_t(b.port()));
69 }
const address & get_address() const
Definition ip.cpp:72
uint16_t port() const
Definition ip.cpp:71

◆ operator==() [1/2]

bool fc::ip::operator== ( const address & a,
const address & b )

Definition at line 22 of file ip.cpp.

22 {
23 return uint32_t(a) == uint32_t(b);
24 }

◆ operator==() [2/2]

bool fc::ip::operator== ( const endpoint & a,
const endpoint & b )

Definition at line 57 of file ip.cpp.

57 {
58 return a._port == b._port && a._ip == b._ip;
59 }