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(); }
public FTPHost(FtpHostConfig config) { _config = config; }