Hey All,

For a final calss project in a client-server class, I want to make a little firewall type program that will listen for incoming traffic to my machine (win 98, roadrunner cable modem), then log some info (like time, port, source, etc.) to a mySQL db.

I'm using c++ to make the sockets, and my question is: right now im creating each socket indiviually and binding them to specific ports. Is there any way i can just listen for all traffic coming in to my machine (like tcpdump in linux), or do I have to create n number of sockets and bind them to individual ports??

Hope I gave enough info, any help will be greatly appreciated.