(self)
| 3169 | desc = "Read/write over a Bluetooth monitor channel" |
| 3170 | |
| 3171 | def __init__(self): |
| 3172 | sa = sockaddr_hci() |
| 3173 | sa.sin_family = socket.AF_BLUETOOTH |
| 3174 | sa.hci_dev = HCI_DEV_NONE |
| 3175 | sa.hci_channel = HCI_CHANNEL_MONITOR |
| 3176 | super().__init__( |
| 3177 | socket_domain=socket.AF_BLUETOOTH, |
| 3178 | socket_type=socket.SOCK_RAW, |
| 3179 | socket_protocol=socket.BTPROTO_HCI, |
| 3180 | sock_address=sa) |
| 3181 | |
| 3182 | def recv(self, x=MTU): |
| 3183 | return HCI_Mon_Hdr(self.ins.recv(x)) |
nothing calls this directly
no test coverage detected