Beispiel #1
0
        private void GotConnection(Socket ClientSocket)
        {
            string message = String.Format("Got a connection from {0}", ClientSocket.RemoteEndPoint.ToString());

            Console.WriteLine(mCaption + " " + message);

            TcpProxy proxy = new TcpProxy(ClientSocket, mServerEP);

            proxy.ProxyDisconnected += new ProxyDisconnectedHandler(ProxyDisconnected);
            lock (mProxies) mProxies.Add(proxy);

            proxy.Run();
        }
Beispiel #2
0
        void GotConnection(Socket clientSocket)
        {
            string message = String.Format("Got a connection from {0}", clientSocket.RemoteEndPoint.ToString());

            icon.ShowBalloonTip(_balloonTipTimeout, _caption, message, ToolTipIcon.Info);

            TcpProxy proxy = new TcpProxy(clientSocket, _serverEP);

            proxy.ProxyDisconnected += new ProxyDisconnectedHandler(ProxyDisconnected);
            lock (_proxies) _proxies.Add(proxy);

            proxy.Run();

            UpdateClientCount();
        }
Beispiel #3
0
        private void GotConnection(Socket ClientSocket)
        {
            string message = String.Format("Got a connection from {0}", ClientSocket.RemoteEndPoint.ToString());
            mIcon.ShowBalloonTip(mBalloonTipTimeout, mCaption, message, ToolTipIcon.Info);

            TcpProxy proxy = new TcpProxy(ClientSocket, mServerEP);
            proxy.ProxyDisconnected += new ProxyDisconnectedHandler(ProxyDisconnected);
            lock (mProxies) mProxies.Add(proxy);

            proxy.Run();

            UpdateClientCount();
        }