コード例 #1
0
 internal void Rect(Socket udp)
 {
     DataHandle Hand = new DataHandle();
     Thread thread = new Thread(new ThreadStart(() =>
     {
         byte[] data = new byte[20480];
         cepb = new IPEndPoint(IPAddress.Any, 0);
         int size = udp.ReceiveFrom(data, ref cepb);
         Thread threada = new Thread(new ThreadStart(() =>
         {
             Coming c = Hand.HaCo(data, size, udp, cepb);
             Protocol protocol = new Protocol(c);
         }));
         threada.Start();
         Rect(udp);
     }));
     thread.Start();
 }
コード例 #2
0
        internal void Rect(Socket udp)
        {
            DataHandle Hand   = new DataHandle();
            Thread     thread = new Thread(new ThreadStart(() =>
            {
                byte[] data    = new byte[20480];
                cepb           = new IPEndPoint(IPAddress.Any, 0);
                int size       = udp.ReceiveFrom(data, ref cepb);
                Thread threada = new Thread(new ThreadStart(() =>
                {
                    Coming c          = Hand.HaCo(data, size, udp, cepb);
                    Protocol protocol = new Protocol(c);
                }));
                threada.Start();
                Rect(udp);
            }));

            thread.Start();
        }
コード例 #3
0
        private void Reca(Socket udpa)
        {
            DataHandle Hand   = new DataHandle();
            Thread     thread = new Thread(new ThreadStart(() =>
            {
                byte[] data = new byte[20480];
                cepa        = new IPEndPoint(IPAddress.Any, 0);
                int size    = udpa.ReceiveFrom(data, ref cepa);

                Thread threada = new Thread(new ThreadStart(() =>
                {
                    Hand.HaCo(data, size, udpa, cepa);
                }));
                threada.Start();
                Reca(udpa);
            }));

            thread.Start();
        }
コード例 #4
0
        private void Reca(Socket udpa)
        {
            DataHandle Hand = new DataHandle();
            Protocol prot = new Protocol();

            Thread thread = new Thread(new ThreadStart(() =>
            {
                byte[] data = new byte[20480];
                cepa = new IPEndPoint(IPAddress.Any, 0);
                int size = udpa.ReceiveFrom(data, ref cepa);
                ("L1002").p2pDEBUG(); //TODO : L1002
                Thread threada = new Thread(new ThreadStart(() =>
                    {
                        Coming comi = Hand.HaCo(data, size ,udpa ,cepa);
                        prot.ComingData(comi);
                    }));
                threada.Start();
                Reca(udpa);
            }));
            thread.Start();
        }
コード例 #5
0
        private void Recb(Socket udpb)
        {
            DataHandle Hand = new DataHandle();
            Protocol   prot = new Protocol();

            Thread thread = new Thread(new ThreadStart(() =>
            {
                byte[] data = new byte[20480];
                cepb        = new IPEndPoint(IPAddress.Any, 0);
                int size    = udpb.ReceiveFrom(data, ref cepb);
                ("L1004").p2pDEBUG(); //TODO : L1004
                Thread threada = new Thread(new ThreadStart(() =>
                {
                    Coming comi = Hand.HaCo(data, size, udpb, cepb);
                    prot.ComingData(comi);
                }));
                threada.Start();
                Recb(udpb);
            }));

            thread.Start();
        }
コード例 #6
0
        private void Reca(Socket udpa)
        {
            DataHandle Hand = new DataHandle();
            Thread thread = new Thread(new ThreadStart(() =>
            {
                byte[] data = new byte[20480];
                cepa = new IPEndPoint(IPAddress.Any, 0);
                int size = udpa.ReceiveFrom(data, ref cepa);

                Thread threada = new Thread(new ThreadStart(() =>
                {
                    Hand.HaCo(data, size, udpa,cepa);
                }));
                threada.Start();
                Reca(udpa);
            }));
            thread.Start();
        }