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

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

Managermanager
 

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 461 of file m_dns.cpp.

Constructor & Destructor Documentation

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

Definition at line 545 of file m_dns.cpp.

Member Function Documentation

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

Called when a connection is accepted

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

Implements ListenSocket.

Definition at line 547 of file m_dns.cpp.

Field Documentation

Manager* TCPSocket::manager
private

Definition at line 463 of file m_dns.cpp.


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