public bool Run(MyInterface.MyInterface myI)
        {
            // Mycommand comm = new Mycommand(, connectionString);



            ReloadFlies();

            p2psev = new p2psever(myI.Parameter[3]);

            p2psev.receiveevent += p2psev_receiveevent;
            p2psev.EventUpdataConnSoc += p2psev_EventUpdataConnSoc;
            p2psev.EventDeleteConnSoc += p2psev_EventDeleteConnSoc;
         //   p2psev.NATthroughevent += tcp_NATthroughevent;//p2p事件,不需要使用
            p2psev.start(Convert.ToInt32(myI.Parameter[4]));
            qt.Add("onlinetoken", onlines);//初始化一个队列,记录在线人员的token
            if (EventMylog != null)
                EventMylog("连接","连接启动成功");
               return true; 
        }
Exemple #2
0
        public bool Run(MyInterface.MyInterface myI)
        {
            // Mycommand comm = new Mycommand(, connectionString);



            ReloadFlies();

            p2psev = new p2psever(myI.Parameter[3]);

            p2psev.receiveevent       += p2psev_receiveevent;
            p2psev.EventUpdataConnSoc += p2psev_EventUpdataConnSoc;
            p2psev.EventDeleteConnSoc += p2psev_EventDeleteConnSoc;
            //   p2psev.NATthroughevent += tcp_NATthroughevent;//p2p事件,不需要使用
            p2psev.start(Convert.ToInt32(myI.Parameter[4])); //myI.Parameter[4]是端口号
            qt.Add("onlinetoken", onlines);                  //初始化一个队列,记录在线人员的token
            if (EventMylog != null)
            {
                EventMylog("连接", "连接启动成功");
            }
            return(true);
        }