Exemplo n.º 1
0
 public FtpClient(TcpClient client, FtpHostConfig config)
 {
     _client           = client;
     _config           = config;
     _client.NoDelay   = true;
     _stream           = _client.GetStream();
     _writer           = new LoggedWriter(_stream);
     _reader           = new LoggedReader(_stream);
     _writer.AutoFlush = true;
     _writer.WriteLine("220 Custom FTP Service");
     Console.WriteLine("Connected from " + _client.Client.RemoteEndPoint);
     ReadLines();
 }
Exemplo n.º 2
0
 public FTPHost(FtpHostConfig config)
 {
     _config = config;
 }