networkplayer

package
v0.0.0-...-054500a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PlayerConnections = make(map[*PlayerConnection]struct{})

Functions

This section is empty.

Types

type PlayerConnection

type PlayerConnection struct {
	Conn                net.Conn
	ConnectionState     network.ConnectionState
	EncryptionDetails   *encryption.Details
	EncryptedConnection *encryption.Connection

	Uuid     *uuid.UUID
	Username string
}

func (*PlayerConnection) Close

func (s *PlayerConnection) Close() error

func (*PlayerConnection) SendPacket

func (s *PlayerConnection) SendPacket(p common.ServerPacket) error

Jump to

Keyboard shortcuts

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