Documentation
¶
Index ¶
- Variables
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Flush() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(p []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(p []byte) (int, error)
- type Listener
- type Port
- func (p *Port) Close() error
- func (p *Port) DialContext(ctx context.Context, target string, via ...string) (net.Conn, error)
- func (p *Port) DialURLContext(ctx context.Context, url *transport.URL) (net.Conn, error)
- func (p *Port) Listen() (net.Listener, error)
- func (p *Port) SendUI(data []byte, dst string) error
- type TNC
- type TNCPort
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTNCClosed = errors.New("TNC closed") ErrPortClosed = errors.New("port closed") )
View Source
var ErrListenerClosed = errors.New("listener closed")
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
Port represents a registered AGWPE Port.
func (*Port) DialContext ¶
func (*Port) DialURLContext ¶
type TNCPort ¶
TNCPort representw a TNC connection with a single registered port.
func OpenPortTCP ¶
OpenPortTCP opens a connection to the TNC and registers a single port.
The returned TNCPort is a reference to the combined Port and TNC.
Click to show internal directories.
Click to hide internal directories.