Blocking ports?

M

marane moll

Hello.

How can I block network ports (21,80,110 etc tcp, udp etc) with c++ (on a
win32 system).
(I already programmed a simple Http-Server in CSharp but with blocking ports
in c++ I'm on the very begin.)
Does anybody have a good link or some good advices or even a programming
example for "blocking ports"?

Thank you very much.
Sincerely
Marane
 
A

Alexander Terekhov

marane said:
Hello.

How can I block network ports (21,80,110 etc tcp, udp etc) with c++ (on a
win32 system).

InitiateSystemShutdown(0, 0, 0, true, false) will work best.

regards,
alexander.
 
J

Jack Klein

Hello.

How can I block network ports (21,80,110 etc tcp, udp etc) with c++ (on a
win32 system).
(I already programmed a simple Http-Server in CSharp but with blocking ports
in c++ I'm on the very begin.)
Does anybody have a good link or some good advices or even a programming
example for "blocking ports"?

Thank you very much.
Sincerely
Marane

http://www.linksys.com

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top