コード例 #1
0
 public ServerWorker(ProxySettings settings, string remoteHost, ClientWorker clientWorker, SocketWrapper clientSocket)
     : base(settings)
 {
     this.remoteHost       = remoteHost;
     this.clientWorker     = clientWorker;
     this.clientSocket     = clientSocket;
     this.inspectorFactory = settings.InspectorFactory;
 }
コード例 #2
0
ファイル: ServerWorker.cs プロジェクト: koonuf/LogProxy
 public ServerWorker(ProxySettings settings, string remoteHost, ClientWorker clientWorker, SocketWrapper clientSocket)
     : base(settings)
 {
     this.remoteHost = remoteHost;
     this.clientWorker = clientWorker;
     this.clientSocket = clientSocket;
     this.inspectorFactory = settings.InspectorFactory;
 }
コード例 #3
0
ファイル: TcpListener.cs プロジェクト: koonuf/LogProxy
        private void HandleAsyncConnection(IAsyncResult result)
        {
            connectionWaitHandle.Set();

            Socket listener = (Socket)result.AsyncState;
            Socket workerSocket = listener.EndAccept(result);

            var proxy = new ClientWorker(workerSocket, this.settings);
            proxy.StartRelay();
        }