fserver

package
v0.0.0-...-bfb5c6f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() iface.Iserver

func NewTcpServer

func NewTcpServer(name string, version string, ip string, port int, maxConn int, protoc iface.IServerProtocol) iface.Iserver

Types

type Server

type Server struct {
	Name      string
	IPVersion string
	IP        string
	Port      int
	MaxConn   int
	GenNum    *utils.UUIDGenerator

	Protoc iface.IServerProtocol
	// contains filtered or unexported fields
}

func (*Server) AddRouter

func (this *Server) AddRouter(router interface{})

func (*Server) CallLater

func (this *Server) CallLater(durations time.Duration, f func(v ...interface{}), args ...interface{})

func (*Server) CallLoop

func (this *Server) CallLoop(durations time.Duration, f func(v ...interface{}), args ...interface{})

func (*Server) CallWhen

func (this *Server) CallWhen(ts string, f func(v ...interface{}), args ...interface{})

func (*Server) GetConnectionMgr

func (this *Server) GetConnectionMgr() iface.Iconnectionmgr

func (*Server) GetConnectionQueue

func (this *Server) GetConnectionQueue() chan interface{}

func (*Server) Serve

func (this *Server) Serve()

func (*Server) Start

func (this *Server) Start()

func (*Server) Stop

func (this *Server) Stop()

func (*Server) WaitSignal

func (this *Server) WaitSignal()

Jump to

Keyboard shortcuts

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