PDA

Click to See Complete Forum and Search --> : OK EXPERTS! GIVE IT YOUR BEST SHOT!!!


eegor
Sep 17th, 2000, 12:31 AM
IF YOU CAN ANSWER THIS, PLEASE SEND THE ANSWER TO JON525@FLOP.NET... THANKS A LOT!

Here's the question (and I don't accept "it's not possible" answers!)...

The Winsock Listen method allows you to listen on a local port for an incoming connection request. If the port is already open or being used, then it can't listen. However, my question is that if there's a way to monitor an already open port using Winsock or some method within VB. Basically, say I'm running a web server (on port 80) and I want to monitor each bit of information that is travelling to and from the web server. If I try to Listen, it will give an error because it's being used. Is there a Passive Mode to winsock or something? ANYTHING?!?! Anything, as far fetched as it may seem... Please reply (to jon525@flop.net). THANKS TO ANYONE WHO CAN GIVE ME AN ANSWER!!!!!!!!!!!!!!!

- JONATHAN FREEMAN (jon525@flop.net)

Dim
Sep 17th, 2000, 06:03 PM
This (http://www.planetsourcecode.com/upload/ftp/CODE_UPLOAD69136192000.zip) will explain everything...it might seem a bit complex at first but you just have to sort through the code.


Gl,
D!m

eegor
Sep 17th, 2000, 08:13 PM
Thanks for your reply, but this doesn't help me. This program lets you monitor the state of a port, which frankly is quite easy. What I want is to be able to see the INFORMATION (not the state) that is being passed through a port. I am simply interested in this kind of thing... If you play an Internet game, don't you ever wonder what exactly they're passing through your port? I read somewhere that in Starcraft: Brood Wars, if you log on with an already-in-use CD key to BATTLE NET, it sends 8 registry keys without even telling you to BATTLE NET. It sends Windows registration information, such as who the computer's owner is and then Outlook information like email address, etc. So... KEEP TRYING EXPERTS, YOUR EFFORT IS GREATLY APPRECIATED!!!

- JoNaThAn FrEeMaN (jon525@flop.net)

Sep 17th, 2000, 11:52 PM
The way i deal with the problem of a port already being used is by ..finding whatever is using the port and then disconnect it from the port..then use the port.

And about your Q about moniroting the port...would using the "getdata" methods in the winsock control itself be sufficent?.. if not try using the method "Winsock1.bytesrecived" and then just route the info to a textbox or something.

but if you mean something more detailed....i dont think it can be found using vb...more like c++ or asm.

All in all good luck though.

And when you figure it out...do you mind sending the code to me? hehe jeffboddie@aol.com

Thanks.