File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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``."
21802180msgstr ""
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
21832188msgid "setsockopt(level, optname, None, optlen: int) form added."
2184- msgstr ""
2189+ msgstr "添加了 setsockopt(level, optname, None, optlen: int) 调用形式。 "
21852190
21862191#: ../../library/socket.rst:1654
21872192msgid ""
You can’t perform that action at this time.
0 commit comments