Documentation
¶
Overview ¶
Package telnet provides a transport layer for communicating with a JNOS BBS over a network. The Open function, if successful, returns a Transport that can be passed to jnos.Connect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is the KPC 3 Plus transport to the JNOS BBS.
func Open ¶
Open connects to the JNOS BBS at bbsAddress (host:port). It logs into the specified BBS mailbox with the specified password. If log is non-nil, all traffic on the connection is written to the log.
func (*Transport) ReadUntil ¶
ReadUntil reads data from the BBS until the specified string is seen, or a timeout occurs. It returns the data that was read (even if it returns an error.)
func (*Transport) ReadUntilT ¶
ReadUntilT reads data from the BBS until the specified string is seen, or the specifiedtimeout occurs. It returns the data that was read (even if it returns an error.)
func (*Transport) UseVerboseReads ¶
UseVerboseReads returns whether it's appropriate to use verbose reads when communicating over this transport.