//-----------------------------------------------------------------------------------------
        private void CreateNewUdpClient(string username, IPEndPoint endPoint)
        {
            UDPClient client = new UDPClient(username);

            client.AddSerializer(_serializer);
            client.AddEndPoint(endPoint);
            client.AddListener(_listener);
            client.Start();
            _clientList.Add(client);

            Console.WriteLine("Client Connected!!!");
        }
Ejemplo n.º 2
0
        public void ServerUdpClientStart()
        {
            //---------------------------------------------------------------------
            //Setup
            //---------------------------------------------------------------------
            ServerLibrary.UDPClient client = new ServerLibrary.UDPClient("Tester");

            //---------------------------------------------------------------------
            //Run Test
            //---------------------------------------------------------------------
            client.Start();

            //---------------------------------------------------------------------
            //Gather Output
            //---------------------------------------------------------------------

            //---------------------------------------------------------------------
            //Assert
            //---------------------------------------------------------------------
        }