InspIRCd
2.0
|
#include <socket.h>
Public Member Functions | |
ListenSocket (ConfigTag *tag, const irc::sockets::sockaddrs &bind_to) | |
void | HandleEvent (EventType et, int errornum=0) |
~ListenSocket () | |
void | AcceptInternal () |
![]() | |
int | GetFd () const |
int | GetEventMask () const |
void | SetFd (int FD) |
EventHandler () | |
virtual | ~EventHandler () |
![]() | |
virtual CullResult | cull () |
Public Attributes | |
reference< ConfigTag > | bind_tag |
std::string | bind_addr |
int | bind_port |
std::string | bind_desc |
Additional Inherited Members | |
![]() | |
int | fd |
This class handles incoming connections on client ports. It will create a new User for every valid connection and assign it a file descriptor.
ListenSocket::ListenSocket | ( | ConfigTag * | tag, |
const irc::sockets::sockaddrs & | bind_to | ||
) |
Create a new listening socket
ListenSocket::~ListenSocket | ( | ) |
Close the socket
void ListenSocket::AcceptInternal | ( | ) |
Handles sockets internals crap of a connection, convenience wrapper really
|
virtual |
Handle an I/O event
Implements EventHandler.
std::string ListenSocket::bind_desc |
Human-readable bind description