Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khellang/nntplib.net

An RFC 3977 and RFC 4643 compliant NNTP client library for .NET, written in C#
https://github.com/khellang/nntplib.net

Last synced: about 2 months ago
JSON representation

An RFC 3977 and RFC 4643 compliant NNTP client library for .NET, written in C#

Awesome Lists containing this project

README

        

# NntpLib.Net
An [RFC 3977](http://tools.ietf.org/pdf/rfc3977.pdf) and [RFC 4643](http://tools.ietf.org/pdf/rfc4643.pdf) compliant NNTP client library for .NET, written in C#.

## Usage

To use the library, you have two options:

### 1. NntpConnection

`NntpConnection` provides the library's lowest level of NNTP communication. The class only has 4 public methods:

```csharp
NntpResponse Connect(string hostname, int port, bool useSsl);

NntpResponse ExecuteCommand(string command);

NntpMultilineResponse ExecuteMultilineCommand(string command, int validCode);

void Close();
```

With this, you can execute commands independently and inspect the responses directly. Using this will give you full control, but will also require some knowledge of the NNTP protocol and its commands. All commands are implemented as extension methods to `INntpConnection` and will call either `ExecuteCommand` or `ExecuteMultilineCommand` with the correct parameters.

### 2. NntpClient

Description for `NntpClient` is coming soon...

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/khellang/nntplib.net/trend.png)](https://bitdeli.com/free "Bitdeli Badge")