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

Data Structures

class  Client

Public Member Functions

 TCPSocket (Manager *m, const Anope::string &ip, int port)
ClientSocketOnAccept (int fd, const sockaddrs &addr) anope_override
- Public Member Functions inherited from ListenSocket
 ListenSocket (const Anope::string &bindip, int port, bool ipv6)
virtual ~ListenSocket ()
bool ProcessRead ()
- 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 ProcessWrite ()
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 461 of file m_dns.cpp.

Constructor & Destructor Documentation

◆ TCPSocket()

TCPSocket::TCPSocket ( Manager m,
const Anope::string ip,
int  port 

Definition at line 545 of file m_dns.cpp.

Member Function Documentation

◆ OnAccept()

ClientSocket* TCPSocket::OnAccept ( int  fd,
const sockaddrs addr 

Called when a connection is accepted

fdThe FD for the new connection
addrThe sockaddr for where the connection came from
The new socket

Implements ListenSocket.

Definition at line 547 of file m_dns.cpp.

Field Documentation

◆ manager

Manager* TCPSocket::manager

Definition at line 463 of file m_dns.cpp.

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