载入中...
搜索中...
未找到
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).
 
Channelget (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.h14 行定义.

构造及析构函数说明

◆ Session()

eve::network::Session::Session ( )
default

◆ ~Session()

eve::network::Session::~Session ( )

在文件 Session.cpp7 行定义.

引用了 closeAll().

成员函数说明

◆ add()

void eve::network::Session::add ( std::string  name,
Channel ch 
)

Registers a channel under a name (replaces an existing entry).

在文件 Session.cpp11 行定义.

引用了 name.

◆ closeAll()

void eve::network::Session::closeAll ( )

Closes every channel in the session.

在文件 Session.cpp24 行定义.

被这些函数引用 ~Session().

◆ get()

Channel * eve::network::Session::get ( std::string  name)

Finds a channel by name, or nullptr.

在文件 Session.cpp15 行定义.

引用了 name.

◆ remove()

void eve::network::Session::remove ( std::string  name)

Removes a channel from the session (does not delete it).

在文件 Session.cpp20 行定义.

引用了 name.


该类的文档由以下文件生成: