#include <server.h>
Collaboration diagram for Dv::Ticket::Server:
Public Member Functions | |
Server (const Dv::Xml::Node::Ref config, Dv::Ticket::Authenticator &authenticator) throw (Dv::Ticket::Exception) | |
Constructor. | |
Server (const std::string &config_fn, Dv::Ticket::Authenticator &authenticator) throw (Dv::Ticket::Exception) | |
Constructor. | |
int | main () throw () |
Server main loop. | |
virtual | ~Server () |
Destructor (virtual). | |
const std::string & | dtd_dir () const |
const std::string & | config_fn () const |
const std::string & | config_dtd_fn () const |
const std::string & | request_dtd_fn () const |
const std::string & | log_fn () const |
const std::string & | cert_fn () const |
const std::string & | key_fn () const |
const std::string & | pid_fn () const |
int | port () const |
const std::string & | host () const |
size_t | client_delay () const |
std::ostream & | log () |
Dv::MySql::Db & | db () |
Dv::Ticket::Authenticator & | authenticator () |
Dv::Ticket::Ticket::Ref | make_ticket (const User &user, const std::string &host, size_t duration) throw (Dv::Ticket::Exception) |
Create and store a new ticket for a user. | |
Dv::Ticket::Ticket::Ref | validate_ticket (Dv::Ticket::Ticket::SERIAL serial, const std::string &host) throw (Dv::Ticket::Exception) |
Retrieve a ticket with a given serial number. | |
Private Member Functions | |
void | init (const Dv::Xml::Node::Ref config) throw (Dv::Ticket::Exception) |
Initialize a server. | |
Private Attributes | |
std::string | dtd_dir_ |
name of directory containing relevant DTD files | |
std::string | config_fn_ |
configuration file name | |
std::string | config_dtd_fn_ |
configuration DTD file name | |
std::string | request_dtd_fn_ |
request DTD file name | |
std::string | log_fn_ |
log DTD file name | |
std::string | cert_fn_ |
server certificate file name | |
std::string | key_fn_ |
server key file name | |
std::string | pid_fn_ |
name of file containing server process ID | |
int | port_ |
port on which server is listening | |
std::string | host_ |
this host | |
size_t | client_delay_ |
delay that the server is prepared to wait for any communication from the client, in millisec | |
Dv::Ticket::Authenticator & | authenticator_ |
reference to authentictor object that is used by this server | |
Dv::MySql::Db * | db_ |
pointer to ticket database connection, never 0 | |
std::ostream * | log_ |
pointer to log output stream, never 0 | |
Dv::Ssl::SslContextV23 * | ssl_context_ |
SSL context. | |
Dv::Ssl::SslServerSocket * | ssl_ss_ |
SSL server socket. |
Definition at line 24 of file server.h.
|
Constructor.
|
|
Constructor.
|
|
Destructor (virtual).
|
|
Server main loop.
|
|
Definition at line 61 of file server.h. References dtd_dir_. |
|
Definition at line 63 of file server.h. References config_fn_. |
|
Definition at line 65 of file server.h. References config_dtd_fn_. |
|
Definition at line 67 of file server.h. References request_dtd_fn_. |
|
Definition at line 69 of file server.h. References log_fn_. |
|
Definition at line 71 of file server.h. References cert_fn_. |
|
Definition at line 73 of file server.h. References key_fn_. |
|
Definition at line 75 of file server.h. References pid_fn_. |
|
Definition at line 78 of file server.h. References port_. |
|
Definition at line 80 of file server.h. References host_. |
|
Definition at line 84 of file server.h. References client_delay_. |
|
Definition at line 87 of file server.h. References log_. |
|
Definition at line 89 of file server.h. References db_. |
|
Definition at line 92 of file server.h. References authenticator_. |
|
Create and store a new ticket for a user.
|
|
Retrieve a ticket with a given serial number.
|
|
Initialize a server.
|
|
name of directory containing relevant DTD files
Definition at line 123 of file server.h. Referenced by dtd_dir(). |
|
configuration file name
Definition at line 125 of file server.h. Referenced by config_fn(). |
|
configuration DTD file name
Definition at line 127 of file server.h. Referenced by config_dtd_fn(). |
|
request DTD file name
Definition at line 129 of file server.h. Referenced by request_dtd_fn(). |
|
log DTD file name
Definition at line 131 of file server.h. Referenced by log_fn(). |
|
server certificate file name
Definition at line 133 of file server.h. Referenced by cert_fn(). |
|
server key file name
Definition at line 135 of file server.h. Referenced by key_fn(). |
|
name of file containing server process ID
Definition at line 137 of file server.h. Referenced by pid_fn(). |
|
port on which server is listening
Definition at line 140 of file server.h. Referenced by port(). |
|
this host
Definition at line 142 of file server.h. Referenced by host(). |
|
delay that the server is prepared to wait for any communication from the client, in millisec
Definition at line 145 of file server.h. Referenced by client_delay(). |
|
reference to authentictor object that is used by this server
Definition at line 148 of file server.h. Referenced by authenticator(). |
|
pointer to ticket database connection, never 0
Definition at line 150 of file server.h. Referenced by db(). |
|
pointer to log output stream, never 0
Definition at line 152 of file server.h. Referenced by log(). |
|
SSL context.
|
|
SSL server socket.
|
dvticket-0.7.1 | [24 October, 2003] |