/// <summary>
 /// The method to fire the OnClientConnected event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The event.</param>
 protected void FireOnClientConnected(object sender, EnhancedTcpListenerOnClientConnectedEventArgs args)
 {
     if (OnClientConnected != null)
     {
         OnClientConnected(sender, args);
     }
 }
        /// <summary>
        /// The method waits for clients to connect and puts the network stream in an event.
        /// </summary>
        private void Listener()
        {
            EnhancedTcpListenerOnClientConnectedEventArgs clientConnectedEvent = new EnhancedTcpListenerOnClientConnectedEventArgs();

            TcpListener tcpListener = new TcpListener(IPAddress.Any, 80);

            tcpListener.Start();

            while (!workerThreadArguments.Exit)
            {
                TcpClient client = tcpListener.AcceptTcpClient();
                clientConnectedEvent.Stream = client.GetStream();
                FireOnClientConnected(this, clientConnectedEvent);
            }
        }