Solved

Outgoing Connections

Posted on 2004-04-25
11
215 Views
Last Modified: 2010-04-01
I want to log all outgoing connections on port 80. Basically if my webbrowser goes to www.google.com i want to show up www.google.com in my program. any ideas?
0
Comment
Question by:spearman123
  • 5
  • 4
11 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 10912652
If you are on Win32, you could use a Winsock layered Service to do that: See http://www.microsoft.com/msj/0599/layeredservice/layeredservice.htm ("Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider")
0
 
LVL 1

Author Comment

by:spearman123
ID: 10912763
Is there a way to do this in a console program? I have not learned Windows programming yet, only to a console window
0
 
LVL 86

Expert Comment

by:jkr
ID: 10912801
>>Is there a way to do this in a console program?

Sure. It makes no difference whether you use that in a console or GUI app.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:spearman123
ID: 10912848
oh okaycool. tryiong now
0
 
LVL 1

Author Comment

by:spearman123
ID: 10912876
okay.. got lost.. is there any exxample I can use to look at?
0
 
LVL 86

Expert Comment

by:jkr
ID: 10912890
The article comes with sample code, the link is right at the top: http://download.microsoft.com/download/0/6/7/0678184e-905e-4783-9511-d4dca1f492b4/layered.exe
0
 
LVL 1

Author Comment

by:spearman123
ID: 10912997
yeah i got that.. its just a bunch of .cpp and .h files and the readme doesnt help me.. i dont know like what i need to use and stuff
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 10913029
>> i dont know like what i need to use and stuff

Then you will have to dig through it. What you want to do in non-trivial and requires some work.
0
 
LVL 1

Author Comment

by:spearman123
ID: 10913324
ugh
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

860 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