mnet

package
v0.0.0-...-617a946 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MEClientConnected = iota
	MEClientDisconnect
	MEClientPacket
	MEServerConnected
	MEServerDisconnect
	MEServerPacket
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn net.Conn, eRecv chan *Event, queueSize int, keySend, keyRecv [4]byte, latency, jitter int) *client

func NewServer

func NewServer(conn net.Conn, eRecv chan *Event, queueSize int) *server

Types

type Client

type Client interface {
	MConn

	GetLogedIn() bool
	SetLogedIn(bool)
	GetAccountID() int32
	SetAccountID(int32)
	GetGender() byte
	SetGender(byte)
	GetWorldID() byte
	SetWorldID(byte)
	GetChannelID() byte
	SetChannelID(byte)
	GetAdminLevel() int
	SetAdminLevel(int)
}

type Event

type Event struct {
	Type   int
	Packet mpacket.Packet
	Conn   net.Conn
}

type MConn

type MConn interface {
	String() string
	Send(mpacket.Packet)
	Cleanup()
}

type Server

type Server interface {
	MConn
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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