|
|||
|
|||
|
#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 <errno.h>#include "inspircd_config.h"#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 | _recvfrom recvfrom |
| #define | _accept accept |
| #define | _getsockname getsockname |
| #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 (unsigned char *address, unsigned char *mask, unsigned int mask_bits) |
| Match raw binary data using CIDR rules. | |
| bool | irc::sockets::MatchCIDR (const char *address, const char *cidr_mask) |
| Match CIDR, without matching username/nickname parts. | |
| bool | irc::sockets::MatchCIDR (const char *address, const char *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. | |
| void | irc::sockets::Blocking (int s) |
| Make a socket file descriptor a blocking socket. | |
| void | irc::sockets::NonBlocking (int s) |
| Make a socket file descriptor into a nonblocking socket. | |
| int | irc::sockets::OpenTCPSocket (char *addr, int socktype=SOCK_STREAM) |
| Create a new valid file descriptor using socket(). | |
|
|
Definition at line 52 of file socket.h. Referenced by ListenSocket::HandleEvent(), and InspSocket::Poll(). |
|
|
Definition at line 54 of file socket.h. Referenced by ListenSocket::HandleEvent(). |
|
|
Definition at line 50 of file socket.h. Referenced by DNS::GetResult(). |
|
|
Definition at line 85 of file socket.h. Referenced by DispatcherThread(), irc::sockets::insp_aton(), irc::sockets::insp_ntoa(), and SQLConn::SendNotify(). |
|
|
|