server

package
v0.0.0-...-9b529c6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.0"

Variables

This section is empty.

Functions

func Start

func Start(port int)

Types

type Server

type Server struct {
	*gnet.EventServer
	// contains filtered or unexported fields
}

func (*Server) OnClosed

func (this *Server) OnClosed(conn gnet.Conn, err error) (action gnet.Action)

func (*Server) OnInitComplete

func (this *Server) OnInitComplete(server gnet.Server) (action gnet.Action)

func (*Server) OnOpened

func (this *Server) OnOpened(conn gnet.Conn) (out []byte, action gnet.Action)

func (*Server) React

func (this *Server) React(frame []byte, conn gnet.Conn) (out []byte, action gnet.Action)

func (*Server) Tick

func (this *Server) Tick() (delay time.Duration, action gnet.Action)

Jump to

Keyboard shortcuts

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