public void Init() { IYSocket <ServerSession, NetMsg> server = new IYSocket <ServerSession, NetMsg>(); server.StartAsServer(IPCfg.srvIP, IPCfg.srvPort); IYCommon.IYSocketLog("NetSvc Init Done"); }
public void Update() { if (msgPackQue.Count > 0) { IYCommon.IYSocketLog("PackCount:" + msgPackQue.Count); lock (obj) { MsgPack msgPack = msgPackQue.Dequeue(); HandOutMsg(msgPack); } } }
public void Update() { if (msgQue.Count > 0) { IYCommon.IYSocketLog("PackCount:" + msgQue.Count); lock (obj) { NetMsg msg = msgQue.Dequeue(); ProcessMsg(msg); } } }
public void Init() { IYCommon.IYSocketLog("CacheSvc Init Done"); }
public void Init() { cacheSvc = CacheSvc.Instance; IYCommon.IYSocketLog("login Init Done"); }
protected override void OnDisConnected() { IYCommon.IYSocketLog("Client DisConnected"); }
protected override void OnReciveMsg(NetMsg msg) { IYCommon.IYSocketLog("RcvPack CMD:" + ((CMD)msg.cmd).ToString()); NetSvc.Instance.AddMsgQue(this, msg); }
protected override void OnConnected() { IYCommon.IYSocketLog("Client Connect"); }
protected override void OnDisConnected() { IYCommon.IYSocketLog("Server DisConnected"); }
protected override void OnReciveMsg(NetMsg msg) { IYCommon.IYSocketLog("RcvPack CMD:" + ((CMD)msg.cmd).ToString()); NetWorkManager.Instance.AddNetPkg(msg); }
protected override void OnConnected() { IYCommon.IYSocketLog("Server Connect To Server Succ"); }