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 }
func (this *SApp) ListenPort() uint16 { return bsn_common.GatePort(this.Id()) }