net

package
v0.0.0-...-2a33acd Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 22 Imported by: 0

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 NewConnection(client_conn net.Conn,
	compression, encryption bool,
	compression_level int32,
	use_mojang_auth bool,
	icon string) *Connection

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL