Link to home
Start Free TrialLog in
Avatar of dwgebler
dwgebler

asked on

Winsock

I need an application I am writing in C++ to be able to use WinSock (or other method) to block all TCP/IP sockets at the click of a button (and obviously resume the traffic). Does anyone how I would go about this in C++? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gdean
gdean

Id tend to agree with jhance on #1, however could you go into greater detail as to what you mean by block all traffic?  Maybe describe in a little more detail the design of your program.  Are you trying to stop communication internally to your app or throughout the entire system?

mulitthreaded/iterative/async/overlapping? server/client? etc...
Avatar of dwgebler

ASKER

I nned my app to be able to block all internet traffic, but I am not a networking programmer so I've no experience in this. I guess blocking the ports for TCP/IP communication is what I want to do (and of course enable it again as well). Is there any way to do this without a lot of complex networking knowledge? I use Norton Internet Security 2003 and it notably has the kind of thing I need for this project as one of its features. You can click a button to block all traffic and resume it any point.
I agree with jhance