Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Objects using this design pattern are referred to in networking as "a stack of stream layers". In Beast we use the term ['layered stream], although the property of having a next layer is not exclusive to streams. As with the SSL stream, __websocket_stream__ is a class template parameterized on a next layer object. This declares a webs采用这种设计模式的对象在网络库中被称为“流层堆栈”。在 Beast 中,我们使用术语 [分层流],但拥有下一层这一特性并非流所独有。与 SSL 流类似,__websocket_stream__ 也是一个以下一层对象为模板参数的类模板。以下声明一个 WebSocketstream which uses a regular TCP/IP socket as the next layer:流,该流使用普通的 TCP/IP 套接字作为其下一层: