A POP server class. More...
#include <gpopserver.h>
Classes | |
| struct | Config |
| A structure containing GPop::Server configuration parameters. More... | |
Public Member Functions | |
| Server (Store &store, const Secrets &, Config) | |
| Constructor. The 'secrets' reference is kept. More... | |
| virtual | ~Server () |
| Destructor. More... | |
| GNet::ServerPeer * | newPeer (GNet::Server::PeerInfo) |
| From MultiServer. More... | |
| void | report () const |
| Generates helpful diagnostics after construction. More... | |
Public Member Functions inherited from GNet::MultiServer | |
| MultiServer (const AddressList &address_list, bool use_connection_lookup) | |
| Constructor. More... | |
| MultiServer () | |
| Default constructor. Initialise with init(). More... | |
| void | init (const AddressList &address_list) |
| Initilisation after default construction. More... | |
| virtual | ~MultiServer () |
| Destructor. More... | |
| std::pair< bool, Address > | firstAddress () const |
| Returns the first listening address. More... | |
Additional Inherited Members | |
Public Types inherited from GNet::MultiServer | |
| typedef std::list< Address > | AddressList |
| typedef Server::PeerInfo | PeerInfo |
Static Public Member Functions inherited from GNet::MultiServer | |
| static bool | canBind (const AddressList &listening_address_list, bool do_throw) |
| Checks that the specified addresses can be bound. More... | |
| static AddressList | addressList (const Address &) |
| A trivial convenience fuction that returns the given addresses as a single-element list. More... | |
| static AddressList | addressList (const AddressList &, unsigned int port) |
| Returns the given list of addresses with the port set correctly. More... | |
| static AddressList | addressList (const G::Strings &, unsigned int port) |
| A convenience function that returns a list of listening addresses given a list of listening interfaces and a port number. More... | |
Protected Member Functions inherited from GNet::MultiServer | |
| void | serverCleanup () |
| Should be called from all derived classes' destructors so that peer objects can use their Server objects safely during their own destruction. More... | |
| void | serverReport (const std::string &server_type) const |
| Writes to the system log a summary of the underlying server objects and their addresses. More... | |
A POP server class.
Definition at line 96 of file gpopserver.h.
Constructor. The 'secrets' reference is kept.
Definition at line 97 of file gpopserver.cpp.
|
virtual |
Destructor.
Definition at line 105 of file gpopserver.cpp.
|
virtual |
From MultiServer.
Implements GNet::MultiServer.
Definition at line 117 of file gpopserver.cpp.
References G_WARNING, GNet::Local::isLocal(), and GNet::Server::PeerInfo::m_address.
| void GPop::Server::report | ( | ) | const |
Generates helpful diagnostics after construction.
Definition at line 111 of file gpopserver.cpp.
References G_LOG_S.
1.8.9.1