Archived

This topic is now archived and is closed to further replies.

Possible Networking Program Design :: Winsock

This topic is 5704 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I have an idea for a program I would like to design and implement using C++. This program will produce a list of websites based on what the user wants to search. For example, let say the user enters "c++ programming." The program will log onto Google.com and conduct a search for "c++ programming." It will browse all responses pages and save all websites into a text file (one line per website URL). One done, the user will have a list of relevant websites. From an implementation perspective, is the program above simple enough using C++ and Winsock? I should be able to setup a socket to connect to a search engine such as Google and/or Yahoo. That is about all I know right now. I do not know how to gather the information after I have connected to, say, a website. Please include a possible implementation using Winsock if you know of one. Thanks, Kuphryn

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Easy stuff. You can do pretty much any netwoeking stuff (related to the internet) with c++ and winsock
Couple things you might wanna check out..
1) Perl is really really good/easy for the type of program you are describing (it will take you about 10% of the time to write a program like this in perl)
2) Check out some programs such as "web spiders" or "robots" (in relation to web searching) as those are the common names (at least i know of) of the sorts of programs that do similar things to the program you''re speaking of making.

Share this post


Link to post
Share on other sites
Thanks.

Thanks, but no thanks. I want to design and implement my own program with the help of members on forums through the web. My goal has always been to learn from start to finish.

As for perl, I heard it is the choice for many UNIX programmers. I will stick with C++ and Winsock for now.

Kuphryn

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Don''t mean to be rude, but that kinda just sounds lazy.

Share this post


Link to post
Share on other sites
No offense taken.

The way I see about asking questions whenever I wonder about something is that I am not the only person learning something. I am sure many other members wonder or might want to know the same things. Plus, unless the question is specific, I always end up going my own way.

In the end, programming to me is sharing ideas and solutions to problems.

Kuphryn

Share this post


Link to post
Share on other sites
Funny, to me programming is a quasi-artform for which I am very well compensated...

I think using C++ and winsock for this is fine. Probably not the optimal solution, but if you are doing it for learning purposes, I am sure you will be able to learn something from the exercise.

Oh, by the way, Perl isn''t just a UNIX beast anymore...

Share this post


Link to post
Share on other sites