Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRSAKey ¶
func GenerateRSAKey()
Types ¶
type Connection ¶
type Connection struct { IncomingPackets *packet_stream.IncomingPacketStream OutgoingPackets *packet_stream.OutgoingPacketStream ServerPacketStream pb.Minecraft_ConnectionClient Version packet.Version // contains filtered or unexported fields }
func NewConnection ¶
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) Disconnect ¶
func (c *Connection) Disconnect(message *util.Chat)
func (*Connection) DoHandshake ¶
func (c *Connection) DoHandshake() bool
returns true if the proxy needs to create a connection with the server
func (*Connection) RecieveLoop ¶
func (c *Connection) RecieveLoop(closed *atomic.Value, cancel context.CancelFunc)
func (*Connection) UUID ¶
func (c *Connection) UUID() util.UUID
func (*Connection) Username ¶
func (c *Connection) Username() string
Click to show internal directories.
Click to hide internal directories.