telnet

package
v0.0.0-...-71a0e65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2015 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelnetCallback

type TelnetCallback struct {
}

func (*TelnetCallback) OnClose

func (this *TelnetCallback) OnClose(c *gotcp.Conn)

func (*TelnetCallback) OnConnect

func (this *TelnetCallback) OnConnect(c *gotcp.Conn) bool

func (*TelnetCallback) OnMessage

func (this *TelnetCallback) OnMessage(c *gotcp.Conn, p gotcp.Packet) bool

type TelnetPacket

type TelnetPacket struct {
	// contains filtered or unexported fields
}

Packet

func NewTelnetPacket

func NewTelnetPacket(pType string, pData []byte) *TelnetPacket

func (*TelnetPacket) GetData

func (p *TelnetPacket) GetData() []byte

func (*TelnetPacket) GetType

func (p *TelnetPacket) GetType() string

func (*TelnetPacket) Serialize

func (p *TelnetPacket) Serialize() []byte

type TelnetProtocol

type TelnetProtocol struct {
}

func (*TelnetProtocol) ReadPacket

func (this *TelnetProtocol) ReadPacket(conn *net.TCPConn) (gotcp.Packet, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL