@@ -536,24 +536,28 @@ msgid ""
536536"(Only :const:`SOCK_STREAM` and :const:`SOCK_DGRAM` appear to be generally "
537537"useful.)"
538538msgstr ""
539+ "这些常量表示套接字类型,用于 :func:`.socket` 的第二个参数。不同系统可能会有更多其他常量可用。(一般只有 "
540+ ":const:`SOCK_STREAM` 和 :const:`SOCK_DGRAM` 可用)"
539541
540542#: ../../library/socket.rst:307
541543msgid ""
542544"These two constants, if defined, can be combined with the socket types and "
543545"allow you to set some flags atomically (thus avoiding possible race "
544546"conditions and the need for separate calls)."
545- msgstr ""
547+ msgstr "这两个常量(如果已定义)可以与上述套接字类型结合使用,允许你设置这些原子性相关的 flags (从而避免可能的竞争条件和单独调用的需要)。 "
546548
547549#: ../../library/socket.rst:313
548550msgid ""
549551"`Secure File Descriptor Handling "
550552"<http://udrepper.livejournal.com/20407.html>`_ for a more thorough "
551553"explanation."
552554msgstr ""
555+ "`Secure File Descriptor Handling (安全地处理文件描述符) "
556+ "<http://udrepper.livejournal.com/20407.html>`_ 提供了更详尽的解释。"
553557
554558#: ../../library/socket.rst:317
555559msgid ":ref:`Availability <availability>`: Linux >= 2.6.27."
556- msgstr ""
560+ msgstr ":ref:`可用性 <availability>`: Linux >= 2.6.27。 "
557561
558562#: ../../library/socket.rst:335
559563msgid ""
@@ -564,35 +568,40 @@ msgid ""
564568"symbols that are defined in the Unix header files are defined; for a few "
565569"symbols, default values are provided."
566570msgstr ""
571+ "此列表内的许多常量,记载在 Unix 文档中的套接字和/或 IP 协议部分,同时也定义在本 socket 模块中。它们通常用于套接字对象的 "
572+ ":meth:`setsockopt` 和 :meth:`getsockopt` 方法的参数中。在大多数情况下,仅那些在 Unix "
573+ "头文件中有定义的符号会在本模块中定义,部分符号提供了默认值。"
567574
568575#: ../../library/socket.rst:342
569576msgid ""
570577"``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, "
571578"``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added."
572579msgstr ""
580+ "添加了 "
581+ "``SO_DOMAIN``、``SO_PROTOCOL``、``SO_PEERSEC``、``SO_PASSSEC``、``TCP_USER_TIMEOUT``、``TCP_CONGESTION``。"
573582
574583#: ../../library/socket.rst:346
575584msgid ""
576585"On Windows, ``TCP_FASTOPEN``, ``TCP_KEEPCNT`` appear if run-time Windows "
577586"supports."
578- msgstr ""
587+ msgstr "在 Windows 上,如果 Windows 运行时支持,则 ``TCP_FASTOPEN``、``TCP_KEEPCNT`` 可用。 "
579588
580589#: ../../library/socket.rst:350
581590msgid "``TCP_NOTSENT_LOWAT`` was added."
582- msgstr ""
591+ msgstr "添加了 ``TCP_NOTSENT_LOWAT``。 "
583592
584593#: ../../library/socket.rst:353
585594msgid ""
586595"On Windows, ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` appear if run-time Windows "
587596"supports."
588- msgstr ""
597+ msgstr "在 Windows 上,如果 Windows 运行时支持,则 ``TCP_KEEPIDLE``、``TCP_KEEPINTVL`` 可用。 "
589598
590599#: ../../library/socket.rst:361 ../../library/socket.rst:408
591600#: ../../library/socket.rst:419
592601msgid ""
593602"Many constants of these forms, documented in the Linux documentation, are "
594603"also defined in the socket module."
595- msgstr ""
604+ msgstr "此列表内的许多常量,记载在 Linux 文档中,同时也定义在本 socket 模块中。 "
596605
597606#: ../../library/socket.rst:365 ../../library/socket.rst:376
598607#: ../../library/socket.rst:400
0 commit comments