@@ -272,12 +272,16 @@ msgid ""
272272":const:`BTPROTO_L2CAP` accepts ``(bdaddr, psm)`` where ``bdaddr`` is the "
273273"Bluetooth address as a string and ``psm`` is an integer."
274274msgstr ""
275+ ":const:`BTPROTO_L2CAP` 接受 ``(bdaddr, psm)``,其中 ``bdaddr`` "
276+ "为字符串格式的蓝牙地址,``psm`` 是一个整数。"
275277
276278#: ../../library/socket.rst:136
277279msgid ""
278280":const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr`` is "
279281"the Bluetooth address as a string and ``channel`` is an integer."
280282msgstr ""
283+ ":const:`BTPROTO_RFCOMM` 接受 ``(bdaddr, channel)``,其中 ``bdaddr`` "
284+ "为字符串格式的蓝牙地址,``channel`` 是一个整数。"
281285
282286#: ../../library/socket.rst:139
283287msgid ""
@@ -286,40 +290,48 @@ msgid ""
286290"depends on your OS; NetBSD and DragonFlyBSD expect a Bluetooth address while"
287291" everything else expects an integer.)"
288292msgstr ""
293+ ":const:`BTPROTO_HCI` 接受 ``(device_id,)``,其中 ``device_id`` "
294+ "为整数或字符串,它表示接口对应的蓝牙地址(具体取决于你的系统,NetBSD 和 DragonFlyBSD 需要蓝牙地址字符串,其他系统需要整数)。"
289295
290296#: ../../library/socket.rst:144
291297msgid "NetBSD and DragonFlyBSD support added."
292- msgstr ""
298+ msgstr "添加了对 NetBSD 和 DragonFlyBSD 的支持。 "
293299
294300#: ../../library/socket.rst:147
295301msgid ""
296302":const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is a :class:`bytes`"
297303" object containing the Bluetooth address in a string format. (ex. "
298304"``b'12:23:34:45:56:67'``) This protocol is not supported under FreeBSD."
299305msgstr ""
306+ ":const:`BTPROTO_SCO` 接受 ``bdaddr``,其中 ``bdaddr`` 是 :class:`bytes` "
307+ "对象,其中含有字符串格式的蓝牙地址(如 ``b'12:23:34:45:56:67'`` ),FreeBSD 不支持此协议。"
300308
301309#: ../../library/socket.rst:152
302310msgid ""
303311":const:`AF_ALG` is a Linux-only socket based interface to Kernel "
304312"cryptography. An algorithm socket is configured with a tuple of two to four "
305313"elements ``(type, name [, feat [, mask]])``, where:"
306314msgstr ""
315+ ":const:`AF_ALG` 是一个仅 Linux 可用的、基于套接字的接口,用于连接内核加密算法。算法套接字可用包括 2 至 4 个元素的元组来配置"
316+ " ``(type, name [, feat [, mask]])``,其中:"
307317
308318#: ../../library/socket.rst:156
309319msgid ""
310320"*type* is the algorithm type as string, e.g. ``aead``, ``hash``, "
311321"``skcipher`` or ``rng``."
312- msgstr ""
322+ msgstr "*type* 是表示算法类型的字符串,如 ``aead``、``hash``、``skcipher`` 或 ``rng``。 "
313323
314324#: ../../library/socket.rst:159
315325msgid ""
316326"*name* is the algorithm name and operation mode as string, e.g. ``sha256``, "
317327"``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``."
318328msgstr ""
329+ "*name* 是表示算法类型和操作模式的字符串,如 ``sha256``、``hmac(sha256)``、``cbc(aes)`` 或 "
330+ "``drbg_nopr_ctr_aes256``。"
319331
320332#: ../../library/socket.rst:162
321333msgid "*feat* and *mask* are unsigned 32bit integers."
322- msgstr ""
334+ msgstr "*feat* 和 *mask* 是无符号 32 位整数。 "
323335
324336#: ../../library/socket.rst:168
325337msgid ""
0 commit comments