Ejemplo n.º 1
0
func init() {

	netfw.RegisterComponent("seasonrank", func(p netfw.IPeer) netfw.IComponent {
		return &oprPrevSeasonRankCom{}
	})

}
Ejemplo n.º 2
0
func init() {

	netfw.RegisterComponent("userdata", func(p netfw.IPeer) netfw.IComponent {
		return &oprUserDataCom{}
	})

}
Ejemplo n.º 3
0
func init() {

	netfw.RegisterComponent("icloud", func(p netfw.IPeer) netfw.IComponent {
		return &oprIcloudCom{}
	})

}
Ejemplo n.º 4
0
func init() {

	netfw.RegisterComponent(componentName, func(p netfw.IPeer) netfw.IComponent {
		return &relayComponent{
			peerImplementor: p,
		}
	})
}
Ejemplo n.º 5
0
func init() {
	// 取得消息对应的消息ID

	netfw.RegisterComponent(componentName, func(p netfw.IPeer) netfw.IComponent {
		c := &rpcComponent{
			callDataMap:     make(map[int64]*Call),
			rpcIDacc:        1,
			peerImplementor: p,
		}

		c.SetTimeout(3000)
		return c
	})
}
Ejemplo n.º 6
0
func init() {

	netfw.RegisterComponent("login", func(p netfw.IPeer) netfw.IComponent {
		return &oprloginComponent{}
	})
}