MCPcopy Index your code
hub / github.com/aceld/zinx / AddRouter

Method AddRouter

ziface/iserver.go:19–19  ·  view source on GitHub ↗

Start the business service method(开启业务服务方法) Routing feature: register a routing business method for the current service for client link processing use (路由功能:给当前服务注册一个路由业务方法,供客户端连接处理使用)

(msgID uint32, router IRouter)

Source from the content-addressed store, hash-verified

17 // Routing feature: register a routing business method for the current service for client link processing use
18 //(路由功能:给当前服务注册一个路由业务方法,供客户端连接处理使用)
19 AddRouter(msgID uint32, router IRouter)
20
21 // New version of routing (新版路由方式)
22 AddRouterSlices(msgID uint32, router ...RouterHandler) IRouterSlices

Callers 8

ServerFunction · 0.65
AddRouterMethod · 0.65
AddRouterMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 1

Serverznet/server.go

Calls

no outgoing calls

Tested by 1

ServerFunction · 0.52