1// Copyright 2016 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Bluetooth sockets and messages
6
7package unix
8
9// Bluetooth Protocols
10const (
11	BTPROTO_L2CAP  = 0
12	BTPROTO_HCI    = 1
13	BTPROTO_SCO    = 2
14	BTPROTO_RFCOMM = 3
15	BTPROTO_BNEP   = 4
16	BTPROTO_CMTP   = 5
17	BTPROTO_HIDP   = 6
18	BTPROTO_AVDTP  = 7
19)
20
21const (
22	HCI_CHANNEL_RAW     = 0
23	HCI_CHANNEL_USER    = 1
24	HCI_CHANNEL_MONITOR = 2
25	HCI_CHANNEL_CONTROL = 3
26)
27
28// Socketoption Level
29const (
30	SOL_BLUETOOTH = 0x112
31	SOL_HCI       = 0x0
32	SOL_L2CAP     = 0x6
33	SOL_RFCOMM    = 0x12
34	SOL_SCO       = 0x11
35)
36