MCPcopy Create free account
hub / github.com/secdev/scapy / srbt

Function srbt

scapy/layers/bluetooth.py:3192–3200  ·  view source on GitHub ↗

send and receive using a bluetooth socket

(bt_address, pkts, inter=0.1, *args, **kargs)

Source from the content-addressed store, hash-verified

3190
3191@conf.commands.register
3192def srbt(bt_address, pkts, inter=0.1, *args, **kargs):
3193 """send and receive using a bluetooth socket"""
3194 if "port" in kargs:
3195 s = conf.BTsocket(bt_address=bt_address, port=kargs.pop("port"))
3196 else:
3197 s = conf.BTsocket(bt_address=bt_address)
3198 a, b = sndrcv(s, pkts, inter=inter, *args, **kargs)
3199 s.close()
3200 return a, b
3201
3202
3203@conf.commands.register

Callers 1

srbt1Function · 0.85

Calls 3

sndrcvFunction · 0.90
popMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…