Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            wudp3.weaveDeleteSocketListEvent += Wudp_weaveDeleteSocketListEvent1;
            wudp3.weaveUpdateSocketListEvent += Wudp_weaveUpdateSocketListEvent1;
            wudp3.weaveReceiveBitEvent       += Wudp2_weaveReceiveBitEvent;
            wudp3.resttime = 0;
            //  wudp3.waveReceiveEvent += Wudp3_waveReceiveEvent;
            wudp3.Start(9903);


            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            wudp.weaveUpdateSocketListEvent += Wudp_weaveUpdateSocketListEvent;
            wudp.weaveDeleteSocketListEvent += Wudp_weaveDeleteSocketListEvent;
            wudp.weaveReceiveDtuEvent       += Wudp_weaveReceiveDtuEvent;
            wudp.start(60001);
            //wudp2p.waveReceiveEvent += Wudp2p_waveReceiveEvent;
            //wudp2p.Start(60002);
            //  wudpweb.weaveUpdateSocketListEvent += Wudpweb_weaveUpdateSocketListEvent;
            //wudpweb.weaveDeleteSocketListEvent += Wudpweb_weaveDeleteSocketListEvent;
            wudpweb.waveReceiveEvent += Wudpweb_waveReceiveEvent;
            wudpweb.Start(18181);


            System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(zhuangtai), null);
            Console.ReadLine();
        }
Ejemplo n.º 3
0
        static WeaveWebServer wudpweb = new WeaveWebServer(); //这是一般SOCKET
        static void Main(string[] args)
        {
            // wudp.Certificate= new System.Security.Cryptography.X509Certificates.X509Certificate2(@"D:\214495009180717.pfx", "214495009180717");
            //wudp.waveReceiveEvent += Wudp_waveReceiveEvent;
            wudp.weaveUpdateSocketListEvent += Wudp_weaveUpdateSocketListEvent;
            wudp.weaveDeleteSocketListEvent += Wudp_weaveDeleteSocketListEvent;
            wudp.weaveReceiveDtuEvent       += Wudp_weaveReceiveDtuEvent;
            wudp.start(60001);
            //  wudpweb.weaveUpdateSocketListEvent += Wudpweb_weaveUpdateSocketListEvent;
            //wudpweb.weaveDeleteSocketListEvent += Wudpweb_weaveDeleteSocketListEvent;
            wudpweb.waveReceiveEvent += Wudpweb_waveReceiveEvent;
            wudpweb.Start(18181);
            //   wudp.weaveReceiveSslEvent += Wudp_weaveReceiveSslEvent; ssl加密的接收事件
            //wudp.Start(8181);

            //System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(gg),null);
            Console.ReadLine();
        }
Ejemplo n.º 4
0
 static void Main(string[] args)
 {
     wudp.waveReceiveEvent += Wudp_waveReceiveEvent;
     wudp.Start(8989);
     Console.ReadLine();
 }