RMVL  2.5.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::async::HttpsServer类 参考final

HTTPS 服务器 更多...

#include <rmvl/io/netapp.hpp>

rm::async::HttpsServer 的协作图:

Public 成员函数

 HttpsServer (Webapp &app, SSLContext &ssl_context)
 创建 HTTPS 服务器
 HttpsServer (const HttpsServer &)=delete
HttpsServeroperator= (const HttpsServer &)=delete
 HttpsServer (HttpsServer &&) noexcept=delete
HttpsServeroperator= (HttpsServer &&) noexcept=delete
 ~HttpsServer ()
void listen (uint16_t port, std::function< void()> callback=nullptr)
 监听指定端口
Task spin ()
 启动监听任务循环
Task spinWithoutSigint ()
 启动监听任务循环,不启用 SIGINT 信号处理
bool running () const noexcept
 是否正在运行
void stop () noexcept
 停止运行

详细描述

HTTPS 服务器

接受 TCP 连接后执行服务端 TLS 握手,再将安全流交给 Webapp 处理。

构造及析构函数说明

◆ HttpsServer() [1/3]

rm::async::HttpsServer::HttpsServer ( Webapp & app,
SSLContext & ssl_context )
inline

创建 HTTPS 服务器

◆ HttpsServer() [2/3]

rm::async::HttpsServer::HttpsServer ( const HttpsServer & )
delete
函数调用图:

◆ HttpsServer() [3/3]

rm::async::HttpsServer::HttpsServer ( HttpsServer && )
deletenoexcept
函数调用图:

◆ ~HttpsServer()

rm::async::HttpsServer::~HttpsServer ( )
函数调用图:

成员函数说明

◆ listen()

void rm::async::HttpsServer::listen ( uint16_t port,
std::function< void()> callback = nullptr )
inline

监听指定端口

函数调用图:

◆ operator=() [1/2]

HttpsServer & rm::async::HttpsServer::operator= ( const HttpsServer & )
delete
函数调用图:

◆ operator=() [2/2]

HttpsServer & rm::async::HttpsServer::operator= ( HttpsServer && )
deletenoexcept
函数调用图:

◆ running()

bool rm::async::HttpsServer::running ( ) const
inlinenodiscardnoexcept

是否正在运行

◆ spin()

Task rm::async::HttpsServer::spin ( )
nodiscard

启动监听任务循环

◆ spinWithoutSigint()

Task rm::async::HttpsServer::spinWithoutSigint ( )
nodiscard

启动监听任务循环,不启用 SIGINT 信号处理

◆ stop()

void rm::async::HttpsServer::stop ( )
inlinenoexcept

停止运行