#include <SphynxServer.hpp>
List of all members.
Public Member Functions |
| u32 | GetTotalPopulation () |
| | Server () |
| bool | StartServer (ThreadPoolLocalStorage *tls, Port port, u8 *public_key, int public_bytes, u8 *private_key, int private_bytes, const char *session_key) |
| virtual | ~Server () |
Static Public Member Functions |
| static bool | GenerateKeyPair (ThreadPoolLocalStorage *tls, const char *public_key_file, const char *private_key_file, u8 *public_key, int public_bytes, u8 *private_key, int private_bytes) |
Protected Member Functions |
| virtual bool | AcceptNewConnexion (const NetAddr &src)=0 |
| Connexion * | Lookup (u32 key) |
| virtual Connexion * | NewConnexion ()=0 |
Private Member Functions |
| ServerWorker * | FindLeastPopulatedPort () |
| void | OnClose () |
| void | OnRead (ThreadPoolLocalStorage *tls, const NetAddr &src, u8 *data, u32 bytes) |
| void | OnWrite (u32 bytes) |
Private Attributes |
| Map | _conn_map |
| CookieJar | _cookie_jar |
| KeyAgreementResponder | _key_agreement_responder |
| u8 | _public_key [PUBLIC_KEY_BYTES] |
| Port | _server_port |
| char | _session_key [SESSION_KEY_BYTES] |
| int | _timer_count |
| ServerTimer ** | _timers |
| int | _worker_count |
| ServerWorker ** | _workers |
Static Private Attributes |
| static const int | SESSION_KEY_BYTES = 32 |
| static const int | WORKER_LIMIT = 32 |
Detailed Description
Definition at line 244 of file SphynxServer.hpp.
Constructor & Destructor Documentation
| cat::sphynx::Server::Server |
( |
| ) |
|
| virtual cat::sphynx::Server::~Server |
( |
| ) |
[virtual] |
Member Function Documentation
| virtual bool cat::sphynx::Server::AcceptNewConnexion |
( |
const NetAddr & |
src | ) |
[protected, pure virtual] |
| ServerWorker* cat::sphynx::Server::FindLeastPopulatedPort |
( |
| ) |
[private] |
| static bool cat::sphynx::Server::GenerateKeyPair |
( |
ThreadPoolLocalStorage * |
tls, |
|
|
const char * |
public_key_file, |
|
|
const char * |
private_key_file, |
|
|
u8 * |
public_key, |
|
|
int |
public_bytes, |
|
|
u8 * |
private_key, |
|
|
int |
private_bytes |
|
) |
| [static] |
| u32 cat::sphynx::Server::GetTotalPopulation |
( |
| ) |
|
| Connexion* cat::sphynx::Server::Lookup |
( |
u32 |
key | ) |
[protected] |
| virtual Connexion* cat::sphynx::Server::NewConnexion |
( |
| ) |
[protected, pure virtual] |
| void cat::sphynx::Server::OnClose |
( |
| ) |
[private, virtual] |
| void cat::sphynx::Server::OnWrite |
( |
u32 |
bytes | ) |
[private, virtual] |
| bool cat::sphynx::Server::StartServer |
( |
ThreadPoolLocalStorage * |
tls, |
|
|
Port |
port, |
|
|
u8 * |
public_key, |
|
|
int |
public_bytes, |
|
|
u8 * |
private_key, |
|
|
int |
private_bytes, |
|
|
const char * |
session_key |
|
) |
| |
Member Data Documentation
The documentation for this class was generated from the following file: