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

Skip to content

Commit b0adb0a

Browse files
[po] auto sync
1 parent 36ba02f commit b0adb0a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

library/socket.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,8 @@ msgid ""
20702070
":const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` "
20712071
"mechanism. See also :meth:`recvmsg`. ::"
20722072
msgstr ""
2073+
"在支持 :const:`SCM_RIGHTS` 机制的系统上,下方的函数通过一个 :const:`AF_UNIX` 套接字来发送文件描述符列表 "
2074+
"*fds*。另请参阅 :meth:`recvmsg`。 ::"
20732075

20742076
#: ../../library/socket.rst:1555
20752077
msgid ""
@@ -2084,6 +2086,8 @@ msgid ""
20842086
"Set mode, IV, AEAD associated data length and flags for :const:`AF_ALG` "
20852087
"socket."
20862088
msgstr ""
2089+
"为 :const:`AF_ALG` 套接字定制的 :meth:`~socket.sendmsg` 版本。可为 :const:`AF_ALG` "
2090+
"套接字设置模式、IV、AEAD 关联数据的长度和标志位。"
20872091

20882092
#: ../../library/socket.rst:1574
20892093
msgid ""
@@ -2099,6 +2103,12 @@ msgid ""
20992103
" bytes which were sent. The socket must be of :const:`SOCK_STREAM` type. "
21002104
"Non-blocking sockets are not supported."
21012105
msgstr ""
2106+
"使用高性能的 :mod:`os.sendfile` 发送文件,直到达到文件的 EOF 为止,返回已发送的字节总数。*file* "
2107+
"必须是一个以二进制模式打开的常规文件对象。如果 :mod:`os.sendfile` 不可用(如 Windows)或 *file* 不是常规文件,将使用"
2108+
" :meth:`send` 代替。*offset* 指示从哪里开始读取文件。如果指定了 "
2109+
"*count*,它确定了要发送的字节总数,而不会持续发送直到达到文件的 "
2110+
"EOF。返回时或发生错误时,文件位置将更新,在这种情况下,:meth:`file.tell() <io.IOBase.tell>` "
2111+
"可用于确定已发送的字节数。套接字必须为 :const:`SOCK_STREAM` 类型。不支持非阻塞的套接字。"
21022112

21032113
#: ../../library/socket.rst:1590
21042114
msgid ""

0 commit comments

Comments
 (0)