msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 20:30+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-08-design--design-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
#, fuzzy
msgid "Design Choices"
msgstr "Design Choices"

#. type: paragraph
#: 12
#, fuzzy
msgid ""
"The implementations were originally driven by business needs of "
"cryptocurrency server applications (e.g.  [@https://github.com/ripple/"
"rippled rippled]), written in C++. These needs were not met by existing "
"solutions so Beast was written from scratch as a solution. Beast's design "
"philosophy avoids flaws exhibited by other libraries:"
msgstr ""
"The implementations were originally driven by business needs of "
"cryptocurrency server applications (e.g.  [@https://github.com/ripple/"
"rippled rippled]), written in C++. These needs were not met by existing "
"solutions so Beast was written from scratch as a solution. Beast's design "
"philosophy avoids flaws exhibited by other libraries:"

#. type: list
#: 18
#, fuzzy
msgid "* Don't try to do too much."
msgstr "* Don't try to do too much."

#. type: list
#: 20
#, fuzzy
msgid "* Don't sacrifice performance."
msgstr "* Don't sacrifice performance."

#. type: list
#: 22
#, fuzzy
msgid "* Mimic __Asio__; familiarity breeds confidence."
msgstr "* Mimic __Asio__; familiarity breeds confidence."

#. type: list
#: 24
#, fuzzy
msgid ""
"* Role-symmetric interfaces; client and server the same (or close to it)."
msgstr ""
"* Role-symmetric interfaces; client and server the same (or close to it)."

#. type: list
#: 26
#, fuzzy
msgid "* Leave important decisions, such as allocating memory or"
msgstr "* Leave important decisions, such as allocating memory or"

#. type: paragraph
#: 29
#, fuzzy
msgid ""
"Beast uses the __DynamicBuffer__ concept presented in the __NetTS__, and "
"relies heavily on the __ConstBufferSequence__ and __MutableBufferSequence__ "
"concepts for passing buffers to functions. The authors have found the "
"dynamic buffer and buffer sequence interfaces to be optimal for interacting "
"with Asio, and for other tasks such as incremental parsing of data in "
"buffers (for example, parsing websocket frames stored in a [link "
"beast.ref.boost__beast__static_buffer `static_buffer`])."
msgstr ""
"Beast uses the __DynamicBuffer__ concept presented in the __NetTS__, and "
"relies heavily on the __ConstBufferSequence__ and __MutableBufferSequence__ "
"concepts for passing buffers to functions. The authors have found the "
"dynamic buffer and buffer sequence interfaces to be optimal for interacting "
"with Asio, and for other tasks such as incremental parsing of data in "
"buffers (for example, parsing websocket frames stored in a [link "
"beast.ref.boost__beast__static_buffer `static_buffer`])."

#. type: paragraph
#: 37
#, fuzzy
msgid ""
"During the development of Beast the authors have studied other software "
"packages and in particular the comments left during the Boost Review process "
"of other packages offering similar functionality. In this section and the "
"FAQs that follow we attempt to answer those questions that are also "
"applicable to Beast."
msgstr ""
"During the development of Beast the authors have studied other software "
"packages and in particular the comments left during the Boost Review process "
"of other packages offering similar functionality. In this section and the "
"FAQs that follow we attempt to answer those questions that are also "
"applicable to Beast."

#. type: paragraph
#: 43
#, fuzzy
msgid ""
"For HTTP we model the message to maximize flexibility of implementation "
"strategies while allowing familiar verbs such as [*`read`] and [*`write`]. "
"The HTTP interface is further driven by the needs of the WebSocket module, "
"as a WebSocket session requires a HTTP Upgrade handshake exchange at the "
"start. Other design goals:"
msgstr ""
"For HTTP we model the message to maximize flexibility of implementation "
"strategies while allowing familiar verbs such as [*`read`] and [*`write`]. "
"The HTTP interface is further driven by the needs of the WebSocket module, "
"as a WebSocket session requires a HTTP Upgrade handshake exchange at the "
"start. Other design goals:"

#. type: list
#: 49
#, fuzzy
msgid "* Keep it simple."
msgstr "* Keep it simple."

#. type: list
#: 51
#, fuzzy
msgid "* Stay low level; don't invent a whole web server or client."
msgstr "* Stay low level; don't invent a whole web server or client."

#. type: list
#: 53
#, fuzzy
msgid "* Allow for customizations, if the user needs it."
msgstr "* Allow for customizations, if the user needs it."

#. type: paragraph
#: 55
#, fuzzy
msgid ""
"The following video presentation was delivered at [@https://cppcon.org/ "
"CppCon] in 2016. It provides a light introduction to some of the earliest "
"interfaces of Beast (which have since changed)."
msgstr ""
"The following video presentation was delivered at [@https://cppcon.org/ "
"CppCon] in 2016. It provides a light introduction to some of the earliest "
"interfaces of Beast (which have since changed)."
