Sponsored Ad

Friday, October 30, 2009

How to NNTP in C#

This is the article on Internet programming with the new programming language Microsoft C #.

NNTP is a protocol more disappearing into the family of Internet protocols. The protocol used to retrieve news from news server, aka NetNews servers. The protocol works by posting messages on various forums, aka newsgroups. Then, other users can read recent messages in the forums. There are also protocols for distributing NetNews NetNews content across multiple servers, allowing thousands of servers to share news and forums. The most popular news server is, of course, Microsoft. More often than not, you can launch your NetNews client by typing the URL NNTP in the address bar of your browser.

public class NntpException : System.ApplicationException
{
public NntpException(string str)
:base(str)
{
}
};

I'm still unsure how best to implement the kinds of exceptions. NET and as such I have remained true to my roots of C + +. I am researching something else and might consider writing a short article on precisely this subject. Let's see. The next step is the class declaration. I Nntp derived from the class System.Net.Sockets TcpClient class in the namespace of the framework. NET.

public class nntp: System.Net.Sockets.TcpClient
We will inherit a lot of basic functions of the TcpClient class.

0 comments:

Post a Comment

Sponsored Ad

Website Update

Followers