InspIRCd  2.0
Public Member Functions | Public Attributes | List of all members
ListenSocket Class Reference

#include <socket.h>

Inheritance diagram for ListenSocket:
EventHandler classbase

Public Member Functions

 ListenSocket (ConfigTag *tag, const irc::sockets::sockaddrs &bind_to)
void HandleEvent (EventType et, int errornum=0)
 ~ListenSocket ()
void AcceptInternal ()
- Public Member Functions inherited from EventHandler
int GetFd () const
int GetEventMask () const
void SetFd (int FD)
 EventHandler ()
virtual ~EventHandler ()
- Public Member Functions inherited from classbase
virtual CullResult cull ()

Public Attributes

reference< ConfigTagbind_tag
std::string bind_addr
int bind_port
std::string bind_desc

Additional Inherited Members

- Protected Attributes inherited from EventHandler
int fd

Detailed Description

This class handles incoming connections on client ports. It will create a new User for every valid connection and assign it a file descriptor.

Constructor & Destructor Documentation

◆ ListenSocket()

ListenSocket::ListenSocket ( ConfigTag tag,
const irc::sockets::sockaddrs bind_to 

Create a new listening socket

◆ ~ListenSocket()

ListenSocket::~ListenSocket ( )

Close the socket

Member Function Documentation

◆ AcceptInternal()

void ListenSocket::AcceptInternal ( )

Handles sockets internals crap of a connection, convenience wrapper really

◆ HandleEvent()

void ListenSocket::HandleEvent ( EventType  et,
int  errornum = 0 

Handle an I/O event

Implements EventHandler.

Member Data Documentation

◆ bind_desc

std::string ListenSocket::bind_desc

Human-readable bind description

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