GMconsole

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	GMSignature = 0x66
	GMHeaderLen = 3

	GMReqUserList    = "userlist"
	GMLogin          = "login"
	GMKickUser       = "kick"
	GMadditem        = "additem"
	GMsave           = "save"
	GMLoginOk        = "LoginSuccess"
	GMLoginFailed    = "LoginFailed"
	GMKickSuccess    = "KickSuccess"
	GMKickFailed     = "KickFailed"
	GMAdditemFailed  = "AddFailed"
	GMAdditemSuccess = "AddSuccess"
	GMSaveSuccess    = "SaveSuccess"
	GMSaveFailed     = "SaveFailed"
)

Variables

This section is empty.

Functions

func GMReadData

func GMReadData(client net.Conn, len uint16) ([]byte, bool)

func GMReadHead

func GMReadHead(client net.Conn) ([]byte, bool)

func GMSendPacket

func GMSendPacket(data *[]byte, client net.Conn)

func InitGMconsole

func InitGMconsole()

func RecvGMmsg

func RecvGMmsg(client net.Conn)

func ToConsoleHost

func ToConsoleHost(username, password, addr, port string)

Types

type GMInfo

type GMInfo struct {
	GMip       string
	GMport     string
	GMname     string
	GMpassword string
}

type GMlogin

type GMlogin struct {
	GMname     string
	GMpassword string
}

type GMpacket

type GMpacket struct {
	Len uint16
	Req string
	// contains filtered or unexported fields
}

type OutUserList

type OutUserList struct {
	UserNum   int
	UserNames []string
}

Jump to

Keyboard shortcuts

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