예제 #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();
        }
예제 #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();
        }
예제 #3
0
파일: MainForm.cs 프로젝트: V07D/wc3proxy
        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();
        }