service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnNewPeer func(net.Conn, byte, uint64)
View Source
var OnNewVerifyPeer func(net.Conn, byte, uint64)

Functions

This section is empty.

Types

type ConnInfo

type ConnInfo struct {
	PeerId   uint64
	PeerType byte
	Conn     net.Conn
}

type Service

type Service struct {
	Server *gtserver.Server
	// contains filtered or unexported fields
}

func NewService

func NewService(bverify bool) (*Service, error)

func (*Service) Start

func (s *Service) Start(net, addr string) error

func (*Service) Stop

func (s *Service) Stop() error

func (*Service) Update

func (s *Service) Update(deltatime float64)

Jump to

Keyboard shortcuts

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