Documentation ¶
Overview ¶
Package telnet provides very simple interface for interacting with telnet devices from go routines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telnet ¶
type Telnet struct {
// contains filtered or unexported fields
}
Telnet presents struct with net.Conn interface for telnet protocol plus buffered reader and timeout setup
func Dial ¶
Dial constructs connection to a telnet device. Address string must be in format: "ip:port" (e.g. "127.0.0.1:23"). Default timeout is set to 5 seconds.
func DialTimeout ¶
DialTimeout acts like Dial but takes a specific timeout (in nanoseconds).
func (Telnet) Read ¶
Read reads all data into string from telnet device until it meets the expected or stops on timeout.
func (Telnet) SetTimeout ¶
SetTimeout changes default or start timeout for all interactions
Click to show internal directories.
Click to hide internal directories.