public Core() { sess_listen_event += new SockSessOpenDelegate(OnSessCreate); sess_accept_event += new SockSessOpenDelegate(OnSessCreate); sess_connect_event += new SockSessOpenDelegate(OnSessCreate); sess_close_event += new SockSessCloseDelegate(OnSessDelete); RegisterService("service.sesslogin", LoginService, OnServiceDone); }
public BaseLayer() { RegisterService("service.sesslisten", SessListenService, OnServiceDone); RegisterService("service.sessconnect", SessConnectService, OnServiceDone); RegisterService("service.sessclose", SessCloseService, OnServiceDone); RegisterService("service.sesssend", SessSendService, OnServiceDone); RegisterService("service.sessdetail", SessDetailService, OnServiceDone); RegisterService("service.sessgroupstate", SessGroupStateService, OnServiceDone); sesstab = new List <SockSess>(); sessstate = new SockSessGroupState(); sess_listen_event = null; sess_accept_event = null; sess_connect_event = null; sess_close_event = null; }