socket

package
Version: v0.0.0-...-21cb16e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down

func Down(id int) error

Down turn down a HCI device by ID

func List

func List() ([]int, error)

List List HCI devices

func Up

func Up(id int) error

Up turn up a HCI device by ID

Types

type Socket

type Socket struct {
	// contains filtered or unexported fields
}

Socket implements a HCI User Channel as ReadWriteCloser.

func NewSocket

func NewSocket(id int) (*Socket, error)

NewSocket returns a HCI User Channel of specified device id. If id is -1, the first available HCI device is returned.

func (*Socket) Close

func (s *Socket) Close() error

func (*Socket) Read

func (s *Socket) Read(p []byte) (int, error)

func (*Socket) Write

func (s *Socket) Write(p []byte) (int, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL