Two Sockets on one port?

DiscoJimmy

Newcomer
Joined
Oct 16, 2003
Messages
8
Hi,

I'm not sure how to go about this, but I know it's possible. I have an application using a TCP socket to send and receive info on a certain port. Now I want another program to listen to the same port, and read the incoming data, but without disturbing the previous socket. I've seen software called packet sniffers, or port sniffers, that are accomplishing this, but with the .NET socket class you can't bind two sockets to the same port.

Anyone have any ideas on how to do this? I think it may have something to do with the IOctl method of the socket, but I have no idea how.

DiscoJimmy
 
Back
Top