A lightweight mechanism to provide an *instant kickstart* to a Go web server instance upon changing any Go source files under the project directory (and its subdirectories).

bluetooth_linux.go 655B

1234567891011121314151617181920212223242526272829303132333435
  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. // Bluetooth sockets and messages
  5. package unix
  6. // Bluetooth Protocols
  7. const (
  8. BTPROTO_L2CAP = 0
  9. BTPROTO_HCI = 1
  10. BTPROTO_SCO = 2
  11. BTPROTO_RFCOMM = 3
  12. BTPROTO_BNEP = 4
  13. BTPROTO_CMTP = 5
  14. BTPROTO_HIDP = 6
  15. BTPROTO_AVDTP = 7
  16. )
  17. const (
  18. HCI_CHANNEL_RAW = 0
  19. HCI_CHANNEL_USER = 1
  20. HCI_CHANNEL_MONITOR = 2
  21. HCI_CHANNEL_CONTROL = 3
  22. )
  23. // Socketoption Level
  24. const (
  25. SOL_BLUETOOTH = 0x112
  26. SOL_HCI = 0x0
  27. SOL_L2CAP = 0x6
  28. SOL_RFCOMM = 0x12
  29. SOL_SCO = 0x11
  30. )