Documentation
¶
Index ¶
- type ClientCaps
- type ClientInfo
- type MCCP2
- func (m *MCCP2) CompressionActive() bool
- func (m *MCCP2) Subnegotiate(subnegotiation []byte) error
- func (m *MCCP2) SubnegotiationString(subnegotiation []byte) (string, error)
- func (m *MCCP2) TransitionLocalState(newState telnet.TelOptState) (func() error, error)
- func (m *MCCP2) TransitionRemoteState(newState telnet.TelOptState) (func() error, error)
- type MCCP3
- func (m *MCCP3) Subnegotiate(subnegotiation []byte) error
- func (m *MCCP3) SubnegotiationString(subnegotiation []byte) (string, error)
- func (m *MCCP3) TransitionLocalState(newState telnet.TelOptState) (func() error, error)
- func (m *MCCP3) TransitionRemoteState(newState telnet.TelOptState) (func() error, error)
- type MCCPCompressionStatusEvent
- type MSSP
- type MSSPData
- type MSSPUpdatedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCaps ¶
type ClientCaps uint64
const ( ANSI ClientCaps = 1 << iota VT100 UTF8 Colors256 MouseTracking OscColorPalette ScreenReader Proxy TrueColor MNES MSLP SSL )
type ClientInfo ¶
type ClientInfo struct { Name string Version string Charset string IPAddress string TermType string Capabilities ClientCaps }
func (*ClientInfo) RegisterMNES ¶
func (i *ClientInfo) RegisterMNES(usage telnet.TelOptUsage) telnet.TelnetOption
func (ClientInfo) RegisterMTTS ¶
func (i ClientInfo) RegisterMTTS(usage telnet.TelOptUsage) telnet.TelnetOption
type MCCP2 ¶
type MCCP2 struct { telopts.BaseTelOpt // contains filtered or unexported fields }
func RegisterMCCP2 ¶
func RegisterMCCP2(usage telnet.TelOptUsage) *MCCP2
func (*MCCP2) CompressionActive ¶
func (*MCCP2) Subnegotiate ¶
func (*MCCP2) SubnegotiationString ¶
func (*MCCP2) TransitionLocalState ¶
func (m *MCCP2) TransitionLocalState(newState telnet.TelOptState) (func() error, error)
func (*MCCP2) TransitionRemoteState ¶
func (m *MCCP2) TransitionRemoteState(newState telnet.TelOptState) (func() error, error)
type MCCP3 ¶
type MCCP3 struct { telopts.BaseTelOpt // contains filtered or unexported fields }
func RegisterMCCP3 ¶
func RegisterMCCP3(usage telnet.TelOptUsage) *MCCP3
func (*MCCP3) Subnegotiate ¶
func (*MCCP3) SubnegotiationString ¶
func (*MCCP3) TransitionLocalState ¶
func (m *MCCP3) TransitionLocalState(newState telnet.TelOptState) (func() error, error)
func (*MCCP3) TransitionRemoteState ¶
func (m *MCCP3) TransitionRemoteState(newState telnet.TelOptState) (func() error, error)
type MCCPCompressionStatusEvent ¶
type MCCPCompressionStatusEvent struct { telopts.BaseTelOptEvent Started bool Sending bool }
func (MCCPCompressionStatusEvent) String ¶
func (s MCCPCompressionStatusEvent) String() string
type MSSP ¶
type MSSP struct { telopts.BaseTelOpt // contains filtered or unexported fields }
func RegisterMSSP ¶
func RegisterMSSP(usage telnet.TelOptUsage, data MSSPData) *MSSP
func (*MSSP) Subnegotiate ¶
func (*MSSP) SubnegotiationString ¶
func (*MSSP) TransitionLocalState ¶
func (m *MSSP) TransitionLocalState(newState telnet.TelOptState) (func() error, error)
type MSSPData ¶
type MSSPData struct { Name string Players int Uptime time.Time Charset []string Codebase []string Contact string CrawlDelay int Created int DiscordURL *url.URL Hostname string Icon *url.URL IP string IPV6 string Language string Location string MinimumAge int Port []int Referral []string SSLPort int Website *url.URL Family []string Genre string Gameplay string Status string GameSystem string InterMUD []string Subgenre string Areas int HelpFiles int Mobiles int Objects int Rooms int Classes int Levels int Races int Skills int ANSI bool UTF8 bool VT100 bool XTerm256Color bool XTermTrueColor bool PayToPlay bool PayForPerks bool HiringBuilders bool HiringCoders bool }
type MSSPUpdatedEvent ¶
type MSSPUpdatedEvent struct { telopts.BaseTelOptEvent Data MSSPData }
func (MSSPUpdatedEvent) String ¶
func (e MSSPUpdatedEvent) String() string
Click to show internal directories.
Click to hide internal directories.