Exemplo n.º 1
0
        void OnEnable()
        {
            var udpClients = UDPBoxFactory.GeterateUdpClientsArray(1235, 1236);

            mUDPBoxConnect = new UDPBox(udpClients, UDPBoxUtility.DefaultHead);
            mUDPBoxConnect.Start();
            mUDPBoxBroadcast = new UDPBoxBroadcast(udpClients[0], 1234);
        }
Exemplo n.º 2
0
        void OnEnable()
        {
            var udpClients1 = UDPBoxFactory.GeterateUdpClientsArray(1234, 1235);

            mUDPBox1 = new UDPBox(udpClients1, UDPBoxUtility.DefaultHead);
            var udpClients2 = UDPBoxFactory.GeterateUdpClientsArray(1235, 1236);

            mUDPBox2 = new UDPBox(udpClients2, UDPBoxUtility.DefaultHead);
        }