Data Structures | Public Member Functions | Private Attributes

cidr Class Reference

#include <sockets.h>

Collaboration diagram for cidr:
Collaboration graph
[legend]

Data Structures

struct  hash

Public Member Functions

 cidr (const Anope::string &ip)
 cidr (const Anope::string &ip, unsigned char len)
Anope::string mask () const
bool match (const sockaddrs &other)
bool operator< (const cidr &other) const
bool operator== (const cidr &other) const
bool operator!= (const cidr &other) const

Private Attributes

sockaddrs addr
Anope::string cidr_ip
unsigned short cidr_len

Detailed Description

Definition at line 84 of file sockets.h.


Constructor & Destructor Documentation

cidr::cidr ( const Anope::string ip  ) 
cidr::cidr ( const Anope::string ip,
unsigned char  len 
)

Member Function Documentation

Anope::string cidr::mask (  )  const
bool cidr::match ( const sockaddrs other  ) 

Definition at line 210 of file sockets.cpp.

References addr, cidr_len, sockaddrs::sa, sockaddrs::sa4, and sockaddrs::sa6.

bool cidr::operator!= ( const cidr other  )  const

Definition at line 288 of file sockets.cpp.

bool cidr::operator< ( const cidr other  )  const

Definition at line 253 of file sockets.cpp.

References addr, cidr_len, sockaddrs::sa, sockaddrs::sa4, and sockaddrs::sa6.

bool cidr::operator== ( const cidr other  )  const

Definition at line 283 of file sockets.cpp.


Field Documentation

sockaddrs cidr::addr [private]

Definition at line 86 of file sockets.h.

Referenced by cidr(), match(), cidr::hash::operator()(), and operator<().

Definition at line 87 of file sockets.h.

Referenced by cidr(), and mask().

unsigned short cidr::cidr_len [private]

Definition at line 88 of file sockets.h.

Referenced by cidr(), mask(), match(), cidr::hash::operator()(), and operator<().


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