#include <authorize.hh>

Public Member Functions | |
| authorize (int nThread, int nTrans, int nBuffer=128) | |
| Contructor. | |
| ~authorize (void) | |
| Destructor. | |
| buffer_pool & | ref_resource (void) |
| get resource queue. | |
| void | filter (transaction *trans) |
| Perform authorization processing. | |
| const char * | stage_name (void) const |
| Stage name. | |
This stage performs the user authentication and copies the user data to the transaction object. The transaction is then passed on to the following stage.
| sends::authorize::authorize | ( | int | nThread, | |
| int | nTrans, | |||
| int | nBuffer = 128 | |||
| ) |
Contructor.
Construct an authorization stage and thread pool consisting of nThread threads, with an input queue of nTrans slots and a resource queue with nBuffer buffers.
| nThread | Number of threads in the authorization thread pool. | |
| nTrans | Maximum number of transactions in th input queue. | |
| nBuffer | Number of buffers in the resource queue. |
| sends::authorize::~authorize | ( | void | ) |
Destructor.
Destroy the authorization stage.
| buffer_pool & sends::authorize::ref_resource | ( | void | ) | [inline] |
get resource queue.
Return a modifiable reference to the resource buffer queue.
| void sends::authorize::filter | ( | transaction * | trans | ) | [virtual] |
Perform authorization processing.
Complete the connection handshake with the client and perform the user authentication processing. At present (2008.01.23) there is no user authentication, although the stage reads a string that will be used for this purpose in the future.
| trans | Transaction object to be processed by this stage. |
Implements sends::seda_stage.
| const char* sends::authorize::stage_name | ( | void | ) | const [virtual] |
Stage name.
Return a constant pointer to a null-terminated character vector with the stage name ("authorization").
Implements sends::seda_stage.
1.5.5