|
Kyoto Tycoon
|
Interface to access each session data. More...
#include <ktthserv.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. | |
Friends | |
| class | ThreadedServer |
Interface to access each session data.
| uint64_t kyototycoon::ThreadedServer::Session::id | ( | ) |
Get the ID number of the session.
| uint32_t kyototycoon::ThreadedServer::Session::thread_id | ( | ) |
Get the ID number of the worker thread.
| void kyototycoon::ThreadedServer::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.
1.7.6.1