MCPcopy Index your code
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/layers/bluetooth.py:3171–3180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls 2

sockaddr_hciClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected