|
|||
|
|||
|
#include <arpa/inet.h>#include <sys/time.h>#include <sys/resource.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/stat.h>#include <netinet/in.h>#include <unistd.h>#include <fcntl.h>#include <netdb.h>#include <cerrno>#include "socketengine.h"Include dependency graph for socket.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | irc |
| namespace | irc::sockets |
Classes | |
| class | ListenSocket |
| This class handles incoming connections on client ports. More... | |
Defines | |
| #define | AF_FAMILY AF_INET |
| #define | PF_PROTOCOL PF_INET |
Typedefs | |
| typedef sockaddr_in | irc::sockets::insp_sockaddr |
| insp_sockaddr for ipv4 | |
| typedef in_addr | irc::sockets::insp_inaddr |
| insp_inaddr for ipv4 | |
Functions | |
| bool | irc::sockets::MatchCIDRBits (const unsigned char *address, const unsigned char *mask, unsigned int mask_bits) |
| Match raw binary data using CIDR rules. | |
| bool | irc::sockets::MatchCIDR (const std::string &address, const std::string &cidr_mask) |
| Match CIDR, without matching username/nickname parts. | |
| bool | irc::sockets::MatchCIDR (const std::string &address, const std::string &cidr_mask, bool match_with_username) |
| Match CIDR, including an optional username/nickname part. | |
| const char * | irc::sockets::insp_ntoa (insp_inaddr n) |
| Convert an insp_inaddr into human readable form. | |
| int | irc::sockets::insp_aton (const char *a, insp_inaddr *n) |
| Convert a human-readable address into an insp_inaddr. | |
| int | irc::sockets::OpenTCPSocket (char *addr, int socktype=SOCK_STREAM) |
| Create a new valid file descriptor using socket(). | |
|
|
Definition at line 67 of file socket.h. Referenced by irc::sockets::insp_aton(), irc::sockets::insp_ntoa(), DispatcherThread::Run(), and SQLConn::SendNotify(). |
|
|
|