Wrox Programmer Forums
|
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2009, 02:56 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default Monitoring port 80

I want to build a basic application that will monitor connections on port 80 to a webserver(s) and I am not sure how to go about this. As this is the first time I have looked at anything like this.

I don't want direct answers but a point in the right direction never hurt anyone. Useful resources people have on stuff like this would be appreciated.
 
Old November 30th, 2009, 05:06 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Mmm, sounds like quite a task - not what I'd call 'basic'.

Two options that I can think of, either write a proxy server that listens on port 80 and then forwards everything on to the real web server, or a promiscuous network scanner.

I wouldn't want to write either in C#, especially the later. There are as you can imagine plenty of both types of applications already in existence, Etheral being the most famous in the later category.

Also consider simply analysing your existing web server log files - this may provide the information you are after without the complexity.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old November 30th, 2009, 05:16 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default

hmm why would you not use C#? I say basic but I don't intend to finish this easily it's more of a project where I can learn and try things out than one I expect to knock out quickly.

It doesn't really serve any purpose other than a learning experience and it's intended task.

I will google both of your suggestions and see what I come up with.
 
Old November 30th, 2009, 05:46 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well in terms of fit for purpose I still think of .Net programs lacking a bit in terms of speed for this type of application. I could be wrong however - and if it is just a learning experience you want then speed might not be your priority.

But then what do I know :)

http://www.mentalis.org/soft/projects/proxy/
http://www.codeproject.com/KB/IP/hssniffer.aspx
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old November 30th, 2009, 05:56 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default

Speed at the moment is definitely not a priority but a working application is. Thanks a lot for those links they look like they will be useful.
 
Old December 1st, 2009, 01:21 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default

some programs monitor specified port using C#. you can use this samples. you can find a link to download this program at linq-class-csharp.blogfa.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Split a string by 80 chars, but not during a word 2BOrNot2B XSLT 4 December 5th, 2008 04:13 AM
edit 80 port number AristotleYu ASP.NET 2.0 Basics 0 June 22nd, 2006 11:36 AM
An error occurred while validating. HRESULT = '80 Medes Excel VBA 0 May 10th, 2006 02:01 AM
Example on page 80 RWDelPorto BOOK: Beginning VB.NET Databases 5 March 15th, 2005 06:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.