Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientMessageTable = common.NewMessageTable(map[uint16]ClientMessage{ 0x0012: &ClientAuth{}, })
View Source
var ServerMessageTable = common.NewMessageTable(map[uint16]ServerMessage{ 0x0001: &Server0001{}, })
Functions ¶
This section is empty.
Types ¶
type ClientAuth ¶
type ClientAuth struct {
ClientMessage_
Cookie uint32
Nickname common.PString
}
ClientAuthMessage is sent at connection start to authenticate a session.
type ClientMessage ¶
type ClientMessage_ ¶
type ClientMessage_ struct{}
type Conn ¶
type Conn struct {
*common.ServerConn[ClientMessage, ServerMessage]
}
Conn holds the state for a connection to the server.
type ConnectMessage ¶
type ConnectMessage struct {
Unknown1 uint16
Unknown2 uint16
Unknown3 uint16
Unknown4 uint16
Key uint16
Unknown5 uint16
}
ConnectMessage is the message sent by the server when connecting.
func (*ConnectMessage) SetKey ¶ added in v0.0.2
func (c *ConnectMessage) SetKey(key uint8)
type Options ¶
type Options struct {
TopologyClient topologypbconnect.TopologyServiceClient
AccountsService *accounts.Service
}
Options specify the options to use to instantiate the message server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides an implementation of the PangYa message server.
type ServerMessage ¶
type ServerMessage_ ¶
type ServerMessage_ struct{}
Click to show internal directories.
Click to hide internal directories.