在 .NET 中创建自定义 FTP 服务器?

发布于 2024-09-29 19:33:31 字数 559 浏览 0 评论 0原文

假设我想创建一个“自定义”FTP 服务器,即:

  • 对于外界来说,它看起来像一个标准 FTP 服务器
  • 它实际上会提供来自内存数据流(由代码动态生成)或来自网络流的数据,而不是来自实际的文件系统

是否存在可以使用 .NET 扩展的现有 FTP 服务器实现来实现上述目标? (我查看了这个问题和这些IIS 扩展点 但没有找到任何对我的方案有用的内容,除了 这个示例非常接近我想要的,但它看起来该项目没有得到维护并且许可也不清楚)。

Suppose I want to create a "custom" FTP server, that is:

  • It will look like a standard FTP server to the outside world
  • It will actually serve data from either in-memory streams of data (dynamically generated by code) or from network streams, instead of from the actual file system

Is there an existing FTP server implementation that I can extend using .NET to accomplish the above goals? (I looked at this question and these IIS extensibility points but did not find anything useful for my scenario, except for this sample which is really close to what I want, but it looks like the project isn't being maintained and the licensing is unclear).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏辞 2024-10-06 19:33:31

是的,现有的 C# FTP 服务器实现可供您使用。

访问 http:// /codeplex.com 并搜索“ftp”(或者更好,“ftp 服务器”):)

大多数是客户端,但也有一些(最少的)FTP/TFTP 服务器项目。 YMMV。

快乐编码。

Yes, there are existing C# FTP server implementations you can use.

Visit http://codeplex.com and search for 'ftp' (or better, 'ftp server') :)

Most are clients, but there are some (minimal) FTP/TFTP server projects there as well. YMMV.

Happy coding.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文