GMconsole

package
v0.4.2-fix Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 14 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GMSignature = 0x66
	GMHeaderLen = 3

	GMReqUserList       = "userlist"
	GMLogin             = "login"
	GMKickUser          = "kick"
	GMadditem           = "additem"
	GMremoveitem        = "removeitem"
	GMsave              = "save"
	GMBeVIP             = "vip"
	GMbeGM              = "gm"
	GMexit              = "exit"
	GMLoginOk           = "LoginSuccess"
	GMLoginFailed       = "LoginFailed"
	GMKickSuccess       = "KickSuccess"
	GMKickFailed        = "KickFailed"
	GMAdditemFailed     = "AddFailed"
	GMAdditemSuccess    = "AddSuccess"
	GMRemoveitemFailed  = "RemoveFailed"
	GMRemoveitemSuccess = "RemoveSuccess"
	GMSaveSuccess       = "SaveSuccess"
	GMSaveFailed        = "SaveFailed"
	GMBeVIPSuccess      = "VIPSuccess"
	GMBeVIPFailed       = "VIPFailed"
	GMBeGMSuccess       = "GMSuccess"
	GMBeGMFailed        = "GMFailed"
)

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