Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Networking's网络库中的 __ssl_stream__is a class template meeting the requirements of both synchronous and asynchronous read and write streams, implemented in terms of a "next layer" object whose type is determined by a class template parameter. The SSL stream constructs an instance of the next layer object internally, while allowing external access through the observer `net::ssl::stream::next_layer()`. This declares an SSL stream which uses a regular TCP/IP socket as the next layer:是一个类模板,它同时满足同步流与异步流的读写要求,其实现基于一个“下一层”对象,该对象的类型由类模板参数决定。SSL 流在内部构造下一层对象的实例,同时通过观察器 `net::ssl::stream::next_layer()` 提供外部访问。以下声明一个 SSL 流,该流使用普通的 TCP/IP 套接字作为其下一层: