#include "caServerID.h"
Definition at line 27 of file caServerID.h.
caServerID::caServerID |
( |
const struct sockaddr_in & |
addrIn, |
|
|
unsigned |
priority |
|
) |
| |
|
inline |
Definition at line 39 of file caServerID.h.
41 addr ( addrIn ), pri ( static_cast <ca_uint8_t> ( priorityIn ) )
43 assert ( priorityIn <= 0xff );
#define assert(exp)
Declare that a condition should be true.
Definition at line 56 of file caServerID.h.
61 const unsigned caServerMinIndexBitWidth = 2u;
62 const unsigned caServerMaxIndexBitWidth = 32u;
65 index = this->addr.sin_addr.s_addr;
66 index ^= this->addr.sin_port;
67 index ^= this->addr.sin_port >> 8u;
70 caServerMaxIndexBitWidth, index );
resTableIndex integerHash(unsigned MIN_INDEX_WIDTH, unsigned MAX_ID_WIDTH, const T &id)
bool caServerID::operator== |
( |
const caServerID & |
rhs | ) |
const |
|
inline |
Definition at line 46 of file caServerID.h.
48 if ( this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr &&
49 this->addr.sin_port == rhs.addr.sin_port &&
50 this->pri == rhs.pri ) {
unsigned caServerID::priority |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: