msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-07-25 13:08+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-beast-documentation-zh_Hans/"
"doc-qbk-06-websocket-01-connecting-qbk/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#. type: section title
#: 10
msgid "Connecting"
msgstr "连接操作"

#. type: paragraph
#: 12
msgid ""
"Before messages can be exchanged, a websocket stream first needs to be "
"connected, and then to have the websocket handshake performed. The stream "
"delegates the task of establishing the connection to the next layers. For "
"example, if the next layer is a connectible stream or socket object, it can "
"be accessed to call the necessary function for connecting. Here we make an "
"outbound connection as a client would do."
msgstr ""
"在交换消息之前，WebSocket 流需要先建立连接，然后执行 WebSocket 握手。流将建立"
"连接的任务委托给下一层。例如，如果下一层是可连接的流或套接字对象，可以通过访"
"问它来调用必要的连接函数。以下示例展示客户端建立出站连接的过程。"

#. type: paragraph
#: 21
msgid ""
"To accept incoming connections, an acceptor is used. The websocket stream "
"may be constructed from the socket returned by the acceptor when an incoming "
"connection is established."
msgstr ""
"要接受入站连接，需使用 Acceptor。当建立入站连接时，可由 Acceptor 返回的套接字"
"来构造 WebSocket 流。"

#. type: paragraph
#: 27
msgid ""
"Alternatively, the incoming connection may be accepted directly into the "
"socket owned by the websocket stream, using this overload of the acceptor "
"member function."
msgstr ""
"或者，入站连接可以直接接受至 WebSocket 流所拥有的套接字中，使用 Acceptor 成员"
"函数的此重载版本即可实现。"
