nexus

package
v0.0.0-...-cccbfae Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

nexus包为cellnet提供了跨进程,机器的访问支持

每个独立操作系统进程就是一个region, 通过配置文件设定region间的互联方法

Index

Constants

This section is empty.

Variables

View Source
var (

	// 事件通知
	Event *cellnet.EventDispatcher = cellnet.NewEventDispatcher()
)

Functions

func IterateRegion

func IterateRegion(callback func(*RegionData))

func Register

func Register(disp *dispatcher.PacketDispatcher)

Types

type RegionData

type RegionData struct {
	*coredef.Region
	Session cellnet.CellID
}

func GetRegion

func GetRegion(regionID int32) *RegionData

Jump to

Keyboard shortcuts

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