devconn

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenDevice

func ListenDevice(devpath string) (net.Listener, error)

Types

type DeviceConn

type DeviceConn struct {
	Closed bool
	// contains filtered or unexported fields
}

func DialDevice

func DialDevice(devpath string) (*DeviceConn, error)

func (*DeviceConn) Close

func (c *DeviceConn) Close() error

func (*DeviceConn) LocalAddr

func (c *DeviceConn) LocalAddr() net.Addr

func (*DeviceConn) Read

func (c *DeviceConn) Read(b []byte) (n int, err error)

func (*DeviceConn) RemoteAddr

func (c *DeviceConn) RemoteAddr() net.Addr

func (*DeviceConn) SetDeadline

func (c *DeviceConn) SetDeadline(t time.Time) error

func (*DeviceConn) SetReadDeadline

func (c *DeviceConn) SetReadDeadline(t time.Time) error

func (*DeviceConn) SetWriteDeadline

func (c *DeviceConn) SetWriteDeadline(t time.Time) error

func (*DeviceConn) Write

func (c *DeviceConn) Write(b []byte) (n int, err error)

type DeviceListener

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

func (*DeviceListener) Accept

func (ln *DeviceListener) Accept() (net.Conn, error)

func (*DeviceListener) Addr

func (ln *DeviceListener) Addr() net.Addr

func (*DeviceListener) Close

func (ln *DeviceListener) Close() error

func (*DeviceListener) CloseConn

func (ln *DeviceListener) CloseConn() error

Jump to

Keyboard shortcuts

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