Exemplo n.º 1
0
        public virtual void Start()
        {
            httpMsgRouter   = new HttpMsgRouter(SysDef.HTTP_SERVER_URL);
            mHttpMgr.Router = httpMsgRouter;
//            sockMsgRouter = new SockMsgRouter();
//            sockMsgRouter.Start();
            sockMgr = new SockMgr();
            sockMgr.Start();

            routers = new SockMsgRouter[SOCK_CHANNEL_COUNT];
            for (int i = 0; i < AppFnMapping.MAPPING.Length; i++)
            {
                if (AppFnMapping.MAPPING[i] != null)
                {
                }
            }
        }
Exemplo n.º 2
0
        public virtual void ShutDown()
        {
            if (null != httpMsgRouter)
            {
                httpMsgRouter.Shutdown();
                httpMsgRouter = null;
            }

            for (int i = 0; i < routers.Length; i++)
            {
                SockMsgRouter sockMsgRouter = routers[i];
                if (null != sockMsgRouter)
                {
                    SockDisConnect(i);
                    sockMsgRouter.Shutdown();
                    routers[i] = null;
                }
            }
            sockMgr.Shutdown();
        }