Documentation ¶
Index ¶
- Constants
- func GMReadData(client net.Conn, len uint16) ([]byte, bool)
- func GMReadHead(client net.Conn) ([]byte, bool)
- func GMSendPacket(data *[]byte, client net.Conn)
- func InitGMconsole()
- func RecvGMmsg(client net.Conn)
- func ToConsoleHost(username, password, addr, port string)
- type GMInfo
- type GMlogin
- type GMpacket
- type OutUserList
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 GMSendPacket ¶
func InitGMconsole ¶
func InitGMconsole()
func ToConsoleHost ¶
func ToConsoleHost(username, password, addr, port string)
Types ¶
type OutUserList ¶
Click to show internal directories.
Click to hide internal directories.