Exemplo n.º 1
0
        const int NETWORK_SLEEP = 100; //100 ms



        private void InitializeNetwork()
        {
            udpClient = new BufferedUdpClient(localEndPoint);//localEndPoint
            udpClient.MulticastLoopback = true;
            udpClient.JoinMulticastGroup(multicastIP);
            NetworkLoop();
        }
Exemplo n.º 2
0
        private void InitializeNetwork()
        {
            udpClient = new BufferedUdpClient(localEndPoint);
            //udpClient.MulticastLoopback = true;
            //udpClient.JoinMulticastGroup(multicastIP);

            udpClient.Client.Blocking = false;
            //udpClient.Client.Bind(localEndPoint);
            udpClient.remoteEP = (EndPoint)target;
            //udpClient.Client.Connect(loopback);
        }