Solved

NewGroups

Posted on 1998-09-29
3
166 Views
Last Modified: 2013-11-13
How do I go about creating a news group reader.  I'm not looking for someone to write the program for me.  Just what controls do I use and how do I open a connection to the server and retrieve the message Headers and Bodies.
0
Comment
Question by:PCav
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
vignola earned 100 total points
Comment Utility
mabry has a good and cheap control for newsreaders, news.ocx. I have long tried it and found very (perhaps too much) simple.
Anyway to open a connection after connecting a socket on port
21 send LIST CRLF command after server answers if 200 or 201 ok
to have the list of newsgroups. To request headers the command is NEWNEWS ALT.2600 940105 GMT TIME FORMAT (always terminated by crlf) (or XOVER groupname date as explained above). ARTICLE followed by article-id or article number (retrieved from the NEWNEWS answer to get articles.
0
 
LVL 2

Expert Comment

by:Jagar
Comment Utility
Can you please show me some code sample.  For Example a procedure
ConnectToNews, and GetHeader and GetBody.

0
 
LVL 1

Expert Comment

by:vignola
Comment Utility
you have to getfamiliar with winsock calls if you plan to
create your own interface. After connecting to socket with calls to winsock the code is exactly what i explained. i.e.
dim retval ass integer
' call to winsock
retval=myconnectprocedure
ifretval=connected then
command="Get etc."
'
send(command)
if you plan to use news or any other ocx the ocx does make the job for you.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now