Quantcast
Channel: openservernet Wiki & Documentation Rss Feed
Viewing all articles
Browse latest Browse all 20

UPDATED WIKI: FTPQuickStart

$
0
0

Description

The FTP (File Transfer Protocol) Server as the name implies serves files using the FTP protocol.

The server has three main configuration options:
  • The types of listeners (Nonsecure TCP or Secure TCP)
  • The backing file system
  • The security provider.

Samples

This is the minimal code needed to create a FTP server:


In this case a server that listens on port 21, servers up data from c:\temp, and allows anyone to access it
FtpServer server = new FtpServer();
server.Listeners.Add(new NonsecureTcpListener(FtpServer.DEFAULT_NONSECURE_PORT));
server.FileSystem = new DiskFileSystem("c:\\temp");
server.SecurityProvider = new OpenSecurityProvider();
server.Start();
// ...
server.Stop();

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>