UniSet
2.6.0
|
Открытые типы | |
typedef sigc::slot< void, LogSession * > | FinalSlot |
typedef sigc::signal < std::string, LogSession *, LogServerTypes::Command, const std::string & > | LogSessionCommand_Signal |
Открытые члены | |
LogSession (const Poco::Net::StreamSocket &s, std::shared_ptr< DebugStream > &log, timeout_t cmdTimeout=2000, timeout_t checkConnectionTime=10000) | |
void | connectFinalSession (FinalSlot sl) noexcept |
LogSessionCommand_Signal | signal_logsession_command () |
void | cancel () noexcept |
std::string | getClientAddress () const noexcept |
void | setSessionLogLevel (Debug::type t) noexcept |
void | addSessionLogLevel (Debug::type t) noexcept |
void | delSessionLogLevel (Debug::type t) noexcept |
void | setMaxBufSize (size_t num) |
Установить размер буфера для сообщений (количество записей. Не в байтах!!) | |
size_t | getMaxBufSize () const noexcept |
void | run (const ev::loop_ref &loop) noexcept |
void | terminate () |
bool | isAcive () const noexcept |
std::string | name () const noexcept |
std::string | getShortInfo () noexcept |
Poco::JSON::Object::Ptr | httpGetShortInfo () |
Защищенные члены | |
void | event (ev::async &watcher, int revents) noexcept |
void | callback (ev::io &watcher, int revents) noexcept |
void | readEvent (ev::io &watcher) noexcept |
void | writeEvent (ev::io &watcher) |
size_t | readData (unsigned char *buf, int len) |
void | cmdProcessing (const std::string &cmdLogName, const LogServerTypes::lsMessage &msg) |
void | onCmdTimeout (ev::timer &watcher, int revents) noexcept |
void | onCheckConnectionTimer (ev::timer &watcher, int revents) noexcept |
void | final () noexcept |
void | logOnEvent (const std::string &s) noexcept |
Защищенные данные | |
timeout_t | cmdTimeout = { 2000 } |
float | checkConnectionTime = { 10. } |
size_t | maxRecordsNum = { 30000 } |
Реализация "сессии" для клиентов LogServer.
void uniset::LogSession::setMaxBufSize | ( | size_t | num | ) |
Установить размер буфера для сообщений (количество записей. Не в байтах!!)