Documentation ¶
Index ¶
- Constants
- type ServerBoundHandshake
- func (pk ServerBoundHandshake) IsForgeAddress() bool
- func (pk ServerBoundHandshake) IsLoginRequest() bool
- func (pk ServerBoundHandshake) IsRealIPAddress() bool
- func (pk ServerBoundHandshake) IsStatusRequest() bool
- func (pk ServerBoundHandshake) Marshal() protocol.Packet
- func (pk ServerBoundHandshake) ParseServerAddress() string
- func (pk *ServerBoundHandshake) UpgradeToRealIP(clientAddr net.Addr, timestamp time.Time)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerBoundHandshake ¶
type ServerBoundHandshake struct { ProtocolVersion protocol.VarInt ServerAddress protocol.String ServerPort protocol.UnsignedShort NextState protocol.Byte }
func UnmarshalServerBoundHandshake ¶
func UnmarshalServerBoundHandshake(packet protocol.Packet) (ServerBoundHandshake, error)
func (ServerBoundHandshake) IsForgeAddress ¶
func (pk ServerBoundHandshake) IsForgeAddress() bool
func (ServerBoundHandshake) IsLoginRequest ¶
func (pk ServerBoundHandshake) IsLoginRequest() bool
func (ServerBoundHandshake) IsRealIPAddress ¶
func (pk ServerBoundHandshake) IsRealIPAddress() bool
func (ServerBoundHandshake) IsStatusRequest ¶
func (pk ServerBoundHandshake) IsStatusRequest() bool
func (ServerBoundHandshake) Marshal ¶
func (pk ServerBoundHandshake) Marshal() protocol.Packet
func (ServerBoundHandshake) ParseServerAddress ¶
func (pk ServerBoundHandshake) ParseServerAddress() string
func (*ServerBoundHandshake) UpgradeToRealIP ¶
func (pk *ServerBoundHandshake) UpgradeToRealIP(clientAddr net.Addr, timestamp time.Time)
Click to show internal directories.
Click to hide internal directories.