socket

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: 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