Documentation
¶
Index ¶
- Constants
- type Conn
- func (c *Conn) InstallResizeHandler(handler func(int, int))
- func (c *Conn) Read(data []byte) (int, error)
- func (c *Conn) RequestTermSize()
- func (c *Conn) SendCommand(cmd byte) error
- func (c *Conn) SendDo(o byte) error
- func (c *Conn) SendDont(o byte) error
- func (c *Conn) SendWill(o byte) error
- func (c *Conn) SendWont(o byte) error
- func (c *Conn) Write(data []byte) (totalWritten int, err error)
- type ConnectionState
Constants ¶
View Source
const (
IAC byte = 255 // Interpret As Command
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func NewConnection ¶
create and initialize telnet connection object
func (*Conn) InstallResizeHandler ¶
func (*Conn) Read ¶
Here we read data, and process any telnet command if they are encountered. Escaped IAC bytes (= double IAC byte) should be unescaped here as well.
func (*Conn) RequestTermSize ¶
func (c *Conn) RequestTermSize()
func (*Conn) SendCommand ¶
type ConnectionState ¶
type ConnectionState int
Click to show internal directories.
Click to hide internal directories.