protocol

package
v2.0.1-0...-5e4f78d Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: BSD-2-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	RegServ = "regserv"
	SuccReg = "succreg"
	FailReg = "failreg"

	AddBan    = "addgban"
	ClearBans = "cleargbans"

	ReqAuth  = "reqauth"
	ChalAuth = "chalauth"
	ConfAuth = "confauth"
	SuccAuth = "succauth"
	FailAuth = "failauth"
)

standard master server protocol constants exported constants can be sent to the master server

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	*net.TCPConn
	// contains filtered or unexported fields
}

func NewConn

func NewConn(onDisconnect func(error)) *Conn

func (*Conn) Incoming

func (c *Conn) Incoming() <-chan string

func (*Conn) Send

func (c *Conn) Send(format string, args ...interface{})

func (*Conn) Start

func (c *Conn) Start(tcpConn *net.TCPConn)

type IDCycle

type IDCycle uint32

func (*IDCycle) Next

func (c *IDCycle) Next() uint32

Jump to

Keyboard shortcuts

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