GMconsole

package
v0.0.0-...-9d7a3c8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GMSignature = 0x66
	GMHeaderLen = 3

	GMReqUserList       = "userlist"
	GMLogin             = "login"
	GMKickUser          = "kick"
	GMadditem           = "additem"
	GMremoveitem        = "removeitem"
	GMdelroom           = "delroom"
	GMsave              = "save"
	GMBeVIP             = "vip"
	GMbeGM              = "gm"
	GMexit              = "exit"
	GMLoginOk           = "LoginSuccess"
	GMLoginFailed       = "LoginFailed"
	GMKickSuccess       = "KickSuccess"
	GMKickFailed        = "KickFailed"
	GMAdditemFailed     = "AddFailed"
	GMAdditemSuccess    = "AddSuccess"
	GMRemoveitemFailed  = "RemoveFailed"
	GMRemoveitemSuccess = "RemoveSuccess"
	GMDelRoomFailed     = "DelRoomFailed"
	GMDelRoomSuccess    = "DelRoomSuccess"
	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