Skip to content

Commit d771afb

Browse files
gh-129288: Update docs for socket to include new BTPROTO_L2CAP address fields
Update documentation to mention the new cid and bdaddr_type fields for BTPROTO_L2CAP connections.
1 parent 4259dca commit d771afb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/socket.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ created. Socket addresses are represented as follows:
137137
- :const:`AF_BLUETOOTH` supports the following protocols and address
138138
formats:
139139

140-
- :const:`BTPROTO_L2CAP` accepts ``(bdaddr, psm)`` where ``bdaddr`` is
141-
the Bluetooth address as a string and ``psm`` is an integer.
140+
- :const:`BTPROTO_L2CAP` accepts ``(bdaddr, psm, cid, bdaddr_type)`` where ``bdaddr`` is
141+
the Bluetooth address as a string and ``psm``, ``cid`` and ``bdaddr_type`` are integers.
142+
``cid`` and ``bdaddr_type`` are optional.
142143

143144
- :const:`BTPROTO_RFCOMM` accepts ``(bdaddr, channel)`` where ``bdaddr``
144145
is the Bluetooth address as a string and ``channel`` is an integer.

0 commit comments

Comments
 (0)