Kyoto Tycoon
|
Interface to access each session data. More...
#include <kthttp.h>
Classes | |
class | Data |
Interface of session local data. More... | |
Public Member Functions | |
uint64_t | id () |
Get the ID number of the session. | |
uint32_t | thread_id () |
Get the ID number of the worker thread. | |
void | set_data (Data *data) |
Set the session local data. | |
Data * | data () |
Get the session local data. | |
const std::string | expression () |
Get the expression of the socket. | |
Friends | |
class | HTTPServer |
Interface to access each session data.
uint64_t kyototycoon::HTTPServer::Session::id | ( | ) |
Get the ID number of the session.
uint32_t kyototycoon::HTTPServer::Session::thread_id | ( | ) |
Get the ID number of the worker thread.
void kyototycoon::HTTPServer::Session::set_data | ( | Data * | data | ) |
Set the session local data.
data | the session local data. If it is NULL, no data is registered. |
Get the session local data.
const std::string kyototycoon::HTTPServer::Session::expression | ( | ) |
Get the expression of the socket.