#include <sockets.h>
Inherits Socket.
Inherited by HTTPProvider, ProxyCallbackListener, and TCPSocket.

Public Member Functions | |
| ListenSocket (const Anope::string &bindip, int port, bool ipv6) | |
| virtual | ~ListenSocket () |
| bool | ProcessRead () |
| virtual ClientSocket * | OnAccept (int fd, const sockaddrs &addr)=0 |
Definition at line 358 of file sockets.h.
| ListenSocket::ListenSocket | ( | const Anope::string & | bindip, | |
| int | port, | |||
| bool | ipv6 | |||
| ) |
Constructor
| bindip | The IP to bind to | |
| port | The port to listen on | |
| ipv6 | true for ipv6 |
Definition at line 486 of file sockets.cpp.
References SocketIO::Bind(), Socket::bindaddr, Socket::GetFD(), Socket::io, Anope::LastError(), sockaddrs::pton(), Socket::SetBlocking(), and Socket::sock.
| ListenSocket::~ListenSocket | ( | ) | [virtual] |
Definition at line 500 of file sockets.cpp.
| virtual ClientSocket* ListenSocket::OnAccept | ( | int | fd, | |
| const sockaddrs & | addr | |||
| ) | [pure virtual] |
Called when a connection is accepted
| fd | The FD for the new connection | |
| addr | The sockaddr for where the connection came from |
Implemented in TCPSocket, and ProxyCallbackListener.
Referenced by SocketIO::Accept(), and SSLSocketIO::Accept().
| bool ListenSocket::ProcessRead | ( | ) | [virtual] |
Process what has come in from the connection
Reimplemented from Socket.
Definition at line 504 of file sockets.cpp.
References SocketIO::Accept(), CoreException::GetReason(), and Socket::io.
1.7.1