@@ -726,77 +726,80 @@ msgstr "所有 asyncio 协议均可实现基础协议回调。"
726726
727727#: ../../library/asyncio-protocol.rst:485
728728msgid "Connection Callbacks"
729- msgstr "链接回调函数 "
729+ msgstr "连接回调 "
730730
731731#: ../../library/asyncio-protocol.rst:486
732732msgid ""
733733"Connection callbacks are called on all protocols, exactly once per a "
734734"successful connection. All other protocol callbacks can only be called "
735735"between those two methods."
736- msgstr ""
736+ msgstr "连接回调会在所有协议上被调用,每个成功的连接将恰好调用一次。 所有其他协议回调只能在以下两个方法之间被调用。 "
737737
738738#: ../../library/asyncio-protocol.rst:492
739739msgid "Called when a connection is made."
740- msgstr "链接建立时被调用 。"
740+ msgstr "连接建立时被调用 。"
741741
742742#: ../../library/asyncio-protocol.rst:494
743743msgid ""
744744"The *transport* argument is the transport representing the connection. The "
745745"protocol is responsible for storing the reference to its transport."
746- msgstr ""
746+ msgstr "*transport* 参数是代表连接的传输。 此协议负责将引用保存至对应的传输。 "
747747
748748#: ../../library/asyncio-protocol.rst:500
749749msgid "Called when the connection is lost or closed."
750- msgstr "链接丢失或关闭时被调用 。"
750+ msgstr "连接丢失或关闭时将被调用 。"
751751
752752#: ../../library/asyncio-protocol.rst:502
753753msgid ""
754754"The argument is either an exception object or :const:`None`. The latter "
755755"means a regular EOF is received, or the connection was aborted or closed by "
756756"this side of the connection."
757- msgstr ""
757+ msgstr "方法的参数是一个异常对象或为 :const:`None`。 后者意味着收到了常规的 EOF,或者连接被连接的一端取消或关闭。 "
758758
759759#: ../../library/asyncio-protocol.rst:508
760760msgid "Flow Control Callbacks"
761- msgstr "流控制回调函数 "
761+ msgstr "流程控制回调 "
762762
763763#: ../../library/asyncio-protocol.rst:509
764764msgid ""
765765"Flow control callbacks can be called by transports to pause or resume "
766766"writing performed by the protocol."
767- msgstr ""
767+ msgstr "流程控制回调可由传输来调用以暂停或恢复协议所执行的写入操作。 "
768768
769769#: ../../library/asyncio-protocol.rst:512
770770msgid ""
771771"See the documentation of the :meth:`~WriteTransport.set_write_buffer_limits`"
772772" method for more details."
773- msgstr ""
773+ msgstr "请查看 :meth:`~WriteTransport.set_write_buffer_limits` 方法的文档了解详情。 "
774774
775775#: ../../library/asyncio-protocol.rst:517
776776msgid "Called when the transport's buffer goes over the high watermark."
777- msgstr ""
777+ msgstr "当传输的缓冲区升至高水位以上时将被调用。 "
778778
779779#: ../../library/asyncio-protocol.rst:521
780780msgid "Called when the transport's buffer drains below the low watermark."
781- msgstr ""
781+ msgstr "当传输的缓冲区降到低水位以下时将被调用。 "
782782
783783#: ../../library/asyncio-protocol.rst:523
784784msgid ""
785785"If the buffer size equals the high watermark, "
786786":meth:`~BaseProtocol.pause_writing` is not called: the buffer size must go "
787787"strictly over."
788788msgstr ""
789+ "如果缓冲区大小等于高水位值,则 :meth:`~BaseProtocol.pause_writing` 不会被调用:缓冲区大小必须要高于该值。"
789790
790791#: ../../library/asyncio-protocol.rst:527
791792msgid ""
792793"Conversely, :meth:`~BaseProtocol.resume_writing` is called when the buffer "
793794"size is equal or lower than the low watermark. These end conditions are "
794795"important to ensure that things go as expected when either mark is zero."
795796msgstr ""
797+ "相反地,:meth:`~BaseProtocol.resume_writing` 会在缓冲区大小等于或小于低水位值时被调用。 "
798+ "这些结束条件对于当两个水位取零值时也能确保符合预期的行为是很重要的。"
796799
797800#: ../../library/asyncio-protocol.rst:534
798801msgid "Streaming Protocols"
799- msgstr "流协议 "
802+ msgstr "流式协议 "
800803
801804#: ../../library/asyncio-protocol.rst:536
802805msgid ""
0 commit comments