Solved

Outgoing Connections

Posted on 2004-04-25
11
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

691 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