Are there any good free .Net network libraries? (F

2019-01-16 16:11发布

I'm a bit surprised I haven't found a good open source library for performing common network tasks. There are a few very good commercial libraries, but they're too expensive to use on an open source project.

Anyone know of any?

9条回答
beautiful°
2楼-- · 2019-01-16 16:27

Although it hasn't been updated in a while, it is free! I remember being able to get SharpSSH to run without much hassle, and it supports port forwarding (which is what I was looking for at the time!).

SharpSSH http://www.tamirgal.com/home/dev.aspx?Item=SharpSsh

查看更多
一纸荒年 Trace。
3楼-- · 2019-01-16 16:28

IIRC, FTP is built in to .NET, (System.Net.FtpWebRequest) and last time I looked (a couple of years ago, admittedly) I couldn't find any free SSH / SFTP assemblies. That might have changed, though.

查看更多
对你真心纯属浪费
4楼-- · 2019-01-16 16:30

.Net ships with some basic FTP support via System.Net.FtpWebRequest, but its a bit crude at best. A far superior alternative that I can recommend is dotNET FTP client from sourceforge.

I don't know if you're looking for email libraries too, but its something that I came across, so I'll mention it.

For email composing and delivery, the basic .NET libraries are fine. System.Net.Mail.MailMessage is great for composing emails, and System.Net.Mail.SmtpClient is good for sending emails over SMTP.

For retrieving emails with POP3 and parsing MIME messages, you will want an external library. I've been using POP3 MIME Client from codeproject without any problems.

I hope that helps!

查看更多
走好不送
5楼-- · 2019-01-16 16:31

edtFTPNet is free, but you have to buy their "Pro" version to get SFTP (FTP over SSH) and FTPS (FTP over SSL).

查看更多
爷的心禁止访问
6楼-- · 2019-01-16 16:34

SSH.NET Library - https://github.com/sshnet/SSH.NET

Inspired by Sharp.SSH, this library is complete rewrite using .NET 4.0, without any third party dependencies and utilizes parallelism as much as possible to allow best performance.

It's been a solid C# implementation of client side SSH.

查看更多
你好瞎i
7楼-- · 2019-01-16 16:37

Lumisoft is open source and has FTP, DNS, IMAP, POP3 clients, among other stuff. It doesn't include SSH and SFTP though.

查看更多
登录 后发表回答