예제 #1
0
파일: Core.cs 프로젝트: yonzkon/mnncs
        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);
        }
예제 #2
0
파일: BaseLayer.cs 프로젝트: yonzkon/mnncs
        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;
        }