Available on crate feature
l2cap
only.Expand description
Logical Link Control and Adaptation Protocol (L2CAP) sockets.
L2CAP sockets provide Bluetooth Connection Oriented Channels (CoC). This enables the efficient transfer of large data streams between two devices using socket-oriented programming.
L2CAP sockets work with both Bluetooth classic (BR/EDR) and Bluetooth Low Energy (LE).
Modules
Possible bit values for the link mode socket option.
Possible bit values for the PHY socket option.
Stream utility types.
Structs
L2CAP socket connection information.
An L2CAP datagram socket (connection-less, unreliable messages of a fixed maximum length).
Raw socket options for classic Bluetooth (BR/EDR) L2CAP sockets.
L2CAP socket security.
An L2CAP sequential packet socket (sequenced, reliable, two-way connection-based data transmission path for
datagrams of fixed maximum length).
An L2CAP socket server, listening for SeqPacket connections.
An L2CAP socket that has not yet been converted to a StreamListener, Stream, SeqPacketListener,
SeqPacket or Datagram.
An L2CAP socket address.
An L2CAP stream between a local and remote socket (sequenced, reliable, two-way, connection-based).
An L2CAP socket server, listening for Stream connections.
Enums
L2CAP socket flow control mode.
L2CAP socket security level.
Constants
First unprivileged protocol service multiplexor (PSM) for
Bluetooth classic (BR/EDR).
First unprivileged protocol service multiplexor (PSM) for Bluetooth LE.
The highest protocol service multiplexor (PSM) for Bluetooth Low Energy.