Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2008 > C# 2008 aka C# 3.0
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
  #2 (permalink)  
Old November 30th, 2009, 05:06 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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?
  #3 (permalink)  
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.
  #4 (permalink)  
Old November 30th, 2009, 05:46 PM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
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?
  #5 (permalink)  
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.
  #6 (permalink)  
Old December 1st, 2009, 01:21 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:06 PM.


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