载入中...
搜索中...
未找到
eve::network::Session类 参考
Named collection of Channels (a "session"). Lookup by name, close all. Does not own the channels; the caller owns them. 更多...
#include <Session.h>
Public 成员函数 | |
| Session ()=default | |
| ~Session () | |
| void | add (std::string name, Channel *ch) |
| Registers a channel under a name (replaces an existing entry). | |
| Channel * | get (std::string name) |
| Finds a channel by name, or nullptr. | |
| void | remove (std::string name) |
| Removes a channel from the session (does not delete it). | |
| void | closeAll () |
| Closes every channel in the session. | |
详细描述
Named collection of Channels (a "session"). Lookup by name, close all. Does not own the channels; the caller owns them.
构造及析构函数说明
◆ Session()
|
default |
◆ ~Session()
| eve::network::Session::~Session | ( | ) |
在文件 Session.cpp 第 7 行定义.
引用了 closeAll().
成员函数说明
◆ add()
| void eve::network::Session::add | ( | std::string | name, |
| Channel * | ch | ||
| ) |
◆ closeAll()
| void eve::network::Session::closeAll | ( | ) |
◆ get()
| Channel * eve::network::Session::get | ( | std::string | name | ) |
◆ remove()
| void eve::network::Session::remove | ( | std::string | name | ) |
该类的文档由以下文件生成:
- src/modules/network/Session.h
- src/modules/network/Session.cpp