Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The[link beast.ref.boost__beast__websocket__stream `websocket::stream`]member functions的成员函数 [link beast.ref.boost__beast__websocket__stream.handshake `handshake`]and和 [link beast.ref.boost__beast__websocket__stream.async_handshake `async_handshake`]are used to send the request with the required host and target strings. This code connects to the IP address returned from a hostname lookup, then performs the WebSocket handshake in the client role.用于发送包含所需主机和目标字符串的请求。以下代码先连接到通过主机名解析获得的 IP 地址,然后以客户端角色执行 WebSocket 握手。