dispatcher_client

package
v0.0.0-...-fae5011 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOOP_DELAY_ON_DISPATCHER_CLIENT_ERROR = time.Second
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(delegate IDispatcherClientDelegate)

Types

type DispatcherClient

type DispatcherClient struct {
	*proto.GoWorldConnection
}

func GetDispatcherClientForSend

func GetDispatcherClientForSend() *DispatcherClient

func (*DispatcherClient) Close

func (dc *DispatcherClient) Close() error

type IDispatcherClientDelegate

type IDispatcherClientDelegate interface {
	OnDispatcherClientConnect(dispatcherClient *DispatcherClient, isReconnect bool)
	HandleDispatcherClientPacket(msgtype proto.MsgType_t, packet *netutil.Packet)
	HandleDispatcherClientDisconnect()
}

Jump to

Keyboard shortcuts

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