NNTP Client C# Class Library

I have written a small lightweight NNTP client library in C#. Here's a quick little snipit of code that retrieves all of the news groups from a server and writes the details to the Console.

string server = "freenews.netfront.net";
using (Rfc977NntpClient client = new Rfc977NntpClient())
{
client.Connect(server);
foreach (NewsgroupHeader h in client.RetrieveNewsgroups())
{
Console.WriteLine(h);
}
}

The library supports basic RFC977 and as well as some common extensions.

You can download the complete Visual Studio solution as well as all of the unit tests. The unit tests themselves should be useful examples of how to use this library.

UPDATE: This library is now available on CodePlex.

About this entry