Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b1e7aa

Browse files
[po] auto sync
1 parent df11cfe commit 7b1e7aa

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

library/socket.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,10 +2178,15 @@ msgid ""
21782178
"*optlen* argument is required. It's equivalent to call :c:func:`setsockopt` "
21792179
"C function with ``optval=NULL`` and ``optlen=optlen``."
21802180
msgstr ""
2181+
"设置给定套接字选项的值(参阅 Unix 手册页 :manpage:`setsockopt(2)` )。所需的符号常量( :const:`SO_\\*` "
2182+
"等)已定义在本 :mod:`socket` 模块中。该值可以是整数、``None`` 或表示缓冲区的 :term:`字节类对象 <bytes-like "
2183+
"object>`。在后一种情况下,由调用者确保字节串中包含正确的数据位(关于将 C 结构体编码为字节串的方法,请参阅可选的内置模块 "
2184+
":mod:`struct` )。当 *value* 设置为 ``None`` 时,必须设置 *optlen* 参数。这相当于调用 "
2185+
":c:func:`setsockopt` C 函数时使用了 ``optval=NULL`` 和 ``optlen=optlen`` 参数。"
21812186

21822187
#: ../../library/socket.rst:1648
21832188
msgid "setsockopt(level, optname, None, optlen: int) form added."
2184-
msgstr ""
2189+
msgstr "添加了 setsockopt(level, optname, None, optlen: int) 调用形式。"
21852190

21862191
#: ../../library/socket.rst:1654
21872192
msgid ""

0 commit comments

Comments
 (0)