Example #1
0
func NewSServerUserMgr(vSUserMgr *SUserMgr) (*SServerUserMgr, error) {
	GSLog.Debugln("NewSServerUserMgr")
	this := &SServerUserMgr{
		M_SUserMgr: vSUserMgr,
	}
	this.SState = bsn_common.NewSState()
	this.M_SServerUserGate, _ = NewSServerUserGate(this)
	this.M_SServerUserGate.SetAddr("localhost:" + strconv.Itoa(int(bsn_common.GatePort(1))))

	return this, nil
}
Example #2
0
File: app.go Project: bsn069/go
func (this *SApp) ListenPort() uint16 {
	return bsn_common.GatePort(this.Id())
}