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

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

Packetpacket
 

Additional Inherited Members

- Data Fields inherited from Socket
std::bitset< SF_SIZEflags
 
sockaddrs bindaddr
 
SocketIOio
 
- 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 ( bool  v6,
Packet p 
)
inline

Definition at line 618 of file m_dns.cpp.

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

Member Function Documentation

bool NotifySocket::ProcessWrite ( )
inlinevirtual

Called when the socket is ready to be written to

Returns
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* NotifySocket::packet
private

Definition at line 616 of file m_dns.cpp.


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