Documentation ¶
Index ¶
- func ListenDevice(devpath string) (net.Listener, error)
- type DeviceConn
- func (c *DeviceConn) Close() error
- func (c *DeviceConn) LocalAddr() net.Addr
- func (c *DeviceConn) Read(b []byte) (n int, err error)
- func (c *DeviceConn) RemoteAddr() net.Addr
- func (c *DeviceConn) SetDeadline(t time.Time) error
- func (c *DeviceConn) SetReadDeadline(t time.Time) error
- func (c *DeviceConn) SetWriteDeadline(t time.Time) error
- func (c *DeviceConn) Write(b []byte) (n int, err error)
- type DeviceListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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
type DeviceListener ¶
type DeviceListener struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.