@@ -320,22 +320,22 @@ msgstr "如果下层的传输支持 :meth:`write_eof` 方法则返回``True``,
320320#: ../../library/asyncio-stream.rst:271
321321msgid ""
322322"Close the write end of the stream after the buffered write data is flushed."
323- msgstr ""
323+ msgstr "在已缓冲的写入数据被刷新后关闭流的写入端。 "
324324
325325#: ../../library/asyncio-stream.rst:276
326326msgid "Return the underlying asyncio transport."
327- msgstr ""
327+ msgstr "返回下层的 asyncio 传输。 "
328328
329329#: ../../library/asyncio-stream.rst:280
330330msgid ""
331331"Access optional transport information; see "
332332":meth:`BaseTransport.get_extra_info` for details."
333- msgstr ""
333+ msgstr "访问可选的传输信息;详情参见 :meth:`BaseTransport.get_extra_info`。 "
334334
335335#: ../../library/asyncio-stream.rst:285
336336msgid ""
337337"Wait until it is appropriate to resume writing to the stream. Example::"
338- msgstr ""
338+ msgstr "等待直到可以适当地恢复写入到流。 示例:: "
339339
340340#: ../../library/asyncio-stream.rst:291
341341msgid ""
@@ -345,89 +345,97 @@ msgid ""
345345" writing can be resumed. When there is nothing to wait for, the "
346346":meth:`drain` returns immediately."
347347msgstr ""
348+ "这是一个与下层的 IO 写缓冲区进行交互的流程控制方法。 当缓冲区大小达到最高水位(最大上限)时,*drain()* "
349+ "会阻塞直到缓冲区大小减少至最低水位以便恢复写入。 当没有要等待的数据时,:meth:`drain` 会立即返回。"
348350
349351#: ../../library/asyncio-stream.rst:300
350352msgid ""
351353"Return ``True`` if the stream is closed or in the process of being closed."
352- msgstr ""
354+ msgstr "如果流已被关闭或正在被关闭则返回 ``True``。 "
353355
354356#: ../../library/asyncio-stream.rst:307
355357msgid "Wait until the stream is closed."
356- msgstr ""
358+ msgstr "等待直到流被关闭。 "
357359
358360#: ../../library/asyncio-stream.rst:309
359361msgid ""
360362"Should be called after :meth:`close` to wait until the underlying connection"
361363" is closed."
362- msgstr ""
364+ msgstr "应当在 :meth:`close` 之后被调用以便等待直到下层的连接被关闭。 "
363365
364366#: ../../library/asyncio-stream.rst:316
365367msgid "Examples"
366368msgstr "例子"
367369
368370#: ../../library/asyncio-stream.rst:321
369371msgid "TCP echo client using streams"
370- msgstr ""
372+ msgstr "使用流的 TCP 回显客户端 "
371373
372374#: ../../library/asyncio-stream.rst:323
373375msgid "TCP echo client using the :func:`asyncio.open_connection` function::"
374- msgstr ""
376+ msgstr "使用 :func:`asyncio.open_connection` 函数的 TCP 回显客户端:: "
375377
376378#: ../../library/asyncio-stream.rst:345
377379msgid ""
378380"The :ref:`TCP echo client protocol "
379381"<asyncio_example_tcp_echo_client_protocol>` example uses the low-level "
380382":meth:`loop.create_connection` method."
381383msgstr ""
384+ ":ref:`TCP 回显客户端协议 <asyncio_example_tcp_echo_client_protocol>` 示例使用底层级的 "
385+ ":meth:`loop.create_connection` 方法。"
382386
383387#: ../../library/asyncio-stream.rst:352
384388msgid "TCP echo server using streams"
385- msgstr ""
389+ msgstr "使用流的 TCP 回显服务器 "
386390
387391#: ../../library/asyncio-stream.rst:354
388392msgid "TCP echo server using the :func:`asyncio.start_server` function::"
389- msgstr ""
393+ msgstr "TCP 回显服务器使用 :func:`asyncio.start_server` 函数:: "
390394
391395#: ../../library/asyncio-stream.rst:387
392396msgid ""
393397"The :ref:`TCP echo server protocol "
394398"<asyncio_example_tcp_echo_server_protocol>` example uses the "
395399":meth:`loop.create_server` method."
396400msgstr ""
401+ "使用 :meth:`loop.create_server` 方法的 :ref:`TCP 回显服务器协议 "
402+ "<asyncio_example_tcp_echo_server_protocol>` 示例。"
397403
398404#: ../../library/asyncio-stream.rst:392
399405msgid "Get HTTP headers"
400- msgstr ""
406+ msgstr "获取 HTTP 标头 "
401407
402408#: ../../library/asyncio-stream.rst:394
403409msgid ""
404410"Simple example querying HTTP headers of the URL passed on the command line::"
405- msgstr ""
411+ msgstr "查询命令行传入 URL 的 HTTP 标头的简单示例:: "
406412
407413#: ../../library/asyncio-stream.rst:432
408414msgid "Usage::"
409415msgstr "用法::"
410416
411417#: ../../library/asyncio-stream.rst:436
412418msgid "or with HTTPS::"
413- msgstr ""
419+ msgstr "或使用 HTTPS:: "
414420
415421#: ../../library/asyncio-stream.rst:444
416422msgid "Register an open socket to wait for data using streams"
417- msgstr ""
423+ msgstr "注册一个打开的套接字以等待使用流的数据 "
418424
419425#: ../../library/asyncio-stream.rst:446
420426msgid ""
421427"Coroutine waiting until a socket receives data using the "
422428":func:`open_connection` function::"
423- msgstr ""
429+ msgstr "使用 :func:`open_connection` 函数实现等待直到套接字接收到数据的协程:: "
424430
425431#: ../../library/asyncio-stream.rst:480
426432msgid ""
427433"The :ref:`register an open socket to wait for data using a protocol "
428434"<asyncio_example_create_connection>` example uses a low-level protocol and "
429435"the :meth:`loop.create_connection` method."
430436msgstr ""
437+ "使用低层级协议以及 :meth:`loop.create_connection` 方法的 :ref:`注册一个打开的套接字以等待使用协议的数据 "
438+ "<asyncio_example_create_connection>` 示例。"
431439
432440#: ../../library/asyncio-stream.rst:484
433441msgid ""
0 commit comments