Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
NotifySocket Class Reference
Inheritance diagram for NotifySocket:
Inheritance graph
Collaboration diagram for NotifySocket:
Collaboration graph

Public Member Functions

 NotifySocket (bool v6, Packet *p)
bool ProcessWrite () anope_override
- Public Member Functions inherited from Socket
 Socket ()
 Socket (int sock, bool ipv6=false, int type=SOCK_STREAM)
virtual ~Socket ()
int GetFD () const
bool IsIPv6 () const
bool SetBlocking (bool state)
void Bind (const Anope::string &ip, int port=0)
virtual bool Process ()
virtual bool ProcessRead ()
virtual void ProcessError ()

Private Attributes


Additional Inherited Members

- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
sockaddrs bindaddr
- Protected Attributes inherited from Socket
int sock
bool ipv6

Detailed Description

Definition at line 614 of file m_dns.cpp.

Constructor & Destructor Documentation

◆ NotifySocket()

NotifySocket::NotifySocket ( bool  v6,
Packet p 

Definition at line 618 of file m_dns.cpp.

References SocketEngine::Change(), SF_READABLE, and SF_WRITABLE.

Member Function Documentation

◆ ProcessWrite()

bool NotifySocket::ProcessWrite ( )

Called when the socket is ready to be written to

true on success, false to drop this socket

Reimplemented from Socket.

Definition at line 624 of file m_dns.cpp.

References sockaddrs::addr(), Packet::addr, LOG_DEBUG_2, Packet::Pack(), sockaddrs::sa, and sockaddrs::size().

Field Documentation

◆ packet

Packet* NotifySocket::packet

Definition at line 616 of file m_dns.cpp.

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