Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The WebSocket implementation [*does] provide support for shutting down the TLS connection through the use of the ADL compile-time virtual functions [link beast.ref.boost__beast__websocket__teardown `teardown`] and [link beast.ref.boost__beast__websocket__async_teardown `async_teardown`]. These will properly close the connection as per rfc6455 and overloads are available for TLS streams. Callers may provide their own overloads of these functions for user-defined next layer types.
The`websocket::stream`wraps the socket or stream that you provide (for example, a对传入的套接字或流(例如 `boost::asio::ip::tcp::socket`or a或 `boost::asio::ssl::stream`). You establish your TLS connection using the interface on `ssl::stream` like shown in all of the Asio examples, then construct your `websocket::stream` around it.
)进行封装。使用 `ssl::stream` 的接口建立 TLS 连接(如所有 Asio 示例所示),随后围绕该连接构建 `websocket::stream`。The WebSocket implementation [*does] provide support for shutting down the TLS connection through the use of the ADL compile-time virtual functions
WebSocket 实现确实支持关闭 TLS 连接,该操作通过 ADL 编译期虚函数 [link beast.ref.boost__beast__websocket__teardown `teardown`]
and和 [link beast.ref.boost__beast__websocket__async_teardown `async_teardown`]. These will properly close the connection as per rfc6455 and overloads are available for TLS streams. Callers may provide their own overloads of these functions for user-defined next layer types.进行。这些函数针对 TLS 流提供了重载,能够按照 rfc6455 规范正确关闭连接。针对用户自定义的底层流类型,调用者可以提供这些函数的自定义重载。