警告:在io_context停止之前,不能销毁这个服务器实例 更多...
#include <Server.h>
类 carla::streaming::detail::tcp::Server 继承关系图:
carla::streaming::detail::tcp::Server 的协作图:Public 类型 | |
| using | endpoint = boost::asio::ip::tcp::endpoint |
| using | protocol_type = endpoint::protocol_type |
Public 成员函数 | |
| endpoint | GetLocalEndpoint () const |
| bool | IsSynchronousMode () const |
| template<typename FunctorT1 , typename FunctorT2 > | |
| void | Listen (FunctorT1 on_session_opened, FunctorT2 on_session_closed) |
| Server (boost::asio::io_context &io_context, endpoint ep) | |
| void | SetSynchronousMode (bool is_synchro) |
| void | SetTimeout (time_duration timeout) |
| 设置会话超时时间,仅对新创建的会话有效,默认为10秒 更多... | |
Private 成员函数 | |
| void | OpenSession (time_duration timeout, ServerSession::callback_function_type on_session_opened, ServerSession::callback_function_type on_session_closed) |
Private 成员函数 继承自 carla::NonCopyable | |
| NonCopyable ()=default | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable (NonCopyable &&)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| NonCopyable & | operator= (NonCopyable &&)=delete |
Private 属性 | |
| boost::asio::ip::tcp::acceptor | _acceptor |
| boost::asio::io_context & | _io_context |
| bool | _synchronous |
| std::atomic< time_duration > | _timeout |
警告:在io_context停止之前,不能销毁这个服务器实例
TCP服务器类的前向声明。
此类是TCP服务器类的前向声明,用于在ServerSession类中引用。
在文件 streaming/detail/tcp/Server.h 第 25 行定义.
| using carla::streaming::detail::tcp::Server::endpoint = boost::asio::ip::tcp::endpoint |
在文件 streaming/detail/tcp/Server.h 第 28 行定义.
| using carla::streaming::detail::tcp::Server::protocol_type = endpoint::protocol_type |
在文件 streaming/detail/tcp/Server.h 第 29 行定义.
|
explicit |
在文件 Server.cpp 第 20 行定义.
|
inline |
|
inline |
在文件 streaming/detail/tcp/Server.h 第 59 行定义.
引用了 _synchronous.
被这些函数引用 carla::streaming::detail::tcp::ServerSession::Write().
这是这个函数的调用关系图:
|
inline |
在文件 streaming/detail/tcp/Server.h 第 46 行定义.
引用了 _io_context, _timeout , 以及 OpenSession().
被这些函数引用 TEST().
函数调用图:
这是这个函数的调用关系图:
|
private |
在文件 Server.cpp 第 26 行定义.
引用了 _acceptor, _io_context, carla::log_error() , 以及 OpenSession().
被这些函数引用 Listen() , 以及 OpenSession().
函数调用图:
这是这个函数的调用关系图:
|
inline |
在文件 streaming/detail/tcp/Server.h 第 55 行定义.
引用了 _synchronous.
|
inline |
设置会话超时时间,仅对新创建的会话有效,默认为10秒
在文件 streaming/detail/tcp/Server.h 第 39 行定义.
引用了 _timeout.
被这些函数引用 TEST().
这是这个函数的调用关系图:
|
private |
在文件 streaming/detail/tcp/Server.h 第 72 行定义.
被这些函数引用 GetLocalEndpoint() , 以及 OpenSession().
|
private |
在文件 streaming/detail/tcp/Server.h 第 70 行定义.
被这些函数引用 Listen() , 以及 OpenSession().
|
private |
在文件 streaming/detail/tcp/Server.h 第 76 行定义.
被这些函数引用 IsSynchronousMode() , 以及 SetSynchronousMode().
|
private |
在文件 streaming/detail/tcp/Server.h 第 74 行定义.
被这些函数引用 Listen() , 以及 SetTimeout().