socket

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL