21 #ifndef INC_inetAddrID_H 22 #define INC_inetAddrID_H 29 inetAddrID (
const struct sockaddr_in & addrIn );
32 void name (
char *pBuf,
unsigned bufSize )
const;
34 struct sockaddr_in addr;
44 if ( this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr ) {
45 if ( this->addr.sin_port == rhs.addr.sin_port ) {
54 const unsigned inetAddrMinIndexBitWidth = 8u;
55 const unsigned inetAddrMaxIndexBitWidth = 32u;
57 index = this->addr.sin_addr.s_addr;
58 index ^= this->addr.sin_port;
59 index ^= this->addr.sin_port >> 8u;
61 inetAddrMaxIndexBitWidth, index );
69 #endif // ifdef INC_inetAddrID_H resTableIndex hash() const
bool operator==(const inetAddrID &) const
inetAddrID(const struct sockaddr_in &addrIn)
resTableIndex integerHash(unsigned MIN_INDEX_WIDTH, unsigned MAX_ID_WIDTH, const T &id)
void name(char *pBuf, unsigned bufSize) const
unsigned epicsStdCall ipAddrToDottedIP(const struct sockaddr_in *paddr, char *pBuf, unsigned bufSize)