Documentation ¶
Overview ¶
Package event implements types and structures for the telnet out-of-band events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Byte byte // contains filtered or unexported fields }
Command event
func (*Command) Done ¶
func (e *Command) Done()
type Do ¶
type Do struct { Opt byte // contains filtered or unexported fields }
Do event (IAC)
func (*Do) Done ¶
func (e *Do) Done()
type Dont ¶
type Dont struct { Opt byte // contains filtered or unexported fields }
Dont event (IAC)
func (*Dont) Done ¶
func (e *Dont) Done()
type Environment ¶
func (*Environment) Done ¶
func (e *Environment) Done()
func (*Environment) Type ¶
func (e *Environment) Type() Type
type Event ¶
type Event interface { // Done indicates the event is handled. Done() // Handled indicates weather or not the stream already handled the event. If // called without arguments it returns the current status, if called with a // single argument it updates the status. Handled(...bool) bool // Type of the event. Type() Type }
Event with a type.
type NAWS ¶
type NAWS struct {
Width, Height int
// contains filtered or unexported fields
}
NAWS Negotiate About Window Size event (IAC)
func (*NAWS) Done ¶
func (e *NAWS) Done()
type Raw ¶
type Raw struct { Bytes []byte // contains filtered or unexported fields }
Raw event
func (*Raw) Done ¶
func (e *Raw) Done()
type SubNegotiation ¶
func NewSubNegotiation ¶
func NewSubNegotiation(option byte, buffer []byte) *SubNegotiation
func (*SubNegotiation) Done ¶
func (e *SubNegotiation) Done()
func (*SubNegotiation) Type ¶
func (e *SubNegotiation) Type() Type
type TerminalType ¶
TerminalType event
func (*TerminalType) Done ¶
func (e *TerminalType) Done()
func (TerminalType) Type ¶
func (e TerminalType) Type() Type
type Type ¶
type Type int
Type of event
const ( RawEvent Type = iota // Negotiate About Window Size (rfc1073) NawsEvent // Telnet Terminal-Type Option (rfc1090) TerminalTypeEvent // Sub-negotiation (rfc854) SubNegotiateEvent // Interpret as Command (rfc854) CommandEvent // Telnet Environment Option (rfc1408, rfc1571) EnvironmentEvent // Mud Server Status Protocol (rfc854, rfc855 extension) MSSPEvent // Zenith Mud Protocol (rfc854 extension) ZMPEvent // Interpret as Command (rfc854) DoEvent DontEvent WillEvent WontEvent ErrorEvent NullEvent UnknownEvent )
Event types
type Will ¶
type Will struct { Opt byte // contains filtered or unexported fields }
Will event (IAC)
func (*Will) Done ¶
func (e *Will) Done()
Click to show internal directories.
Click to hide internal directories.