473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Blocking ports?

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


Jul 19 '05 #1
5 2841
marane moll wrote:
Hello.

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

[SNIP]

Not here. This newsgroup is for the standard C++ _language_, which has no
support for network programming at the moment. Please read this for hints
here to look for your answer:

http://www.slack.net/~shiva/welcome.txt

--
Attila aka WW
Jul 19 '05 #2
"marane moll" <ma****@gmx.li> wrote in message
news:bk*************@news.t-online.com...
Hello.

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


Basically, you're not in the right newsgroup.

http://www.slack.net/~shiva/welcome.txt
http://www.slack.net/~shiva/offtopic.txt

People here are very sensitive about posts being on-topic,
so trying a win32-specific newsgroup is your only major option.

- J.
Jul 19 '05 #3

marane moll wrote:

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.
Jul 19 '05 #4
Alexander Terekhov wrote:
marane moll wrote:

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.


Mean. ;-)

--
Attila aka WW
Jul 19 '05 #5
On Tue, 16 Sep 2003 10:20:13 +0200, "marane moll" <ma****@gmx.li>
wrote in comp.lang.c++:
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
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrew Peabody | last post by:
Hello, I have a piece of code which is trying to enumerate the COM ports in C#. It works fine on my XP development computer but causes a security exception on Win98. The offending line is ...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
2
by: Tash Robinson | last post by:
I have been searching and can not seem to find a good example of a working UDP client that listens, but does not block while waiting for data arrival. I am trying to write a client application...
3
by: andyI | last post by:
Where do I find information on how to address and pass data to and from the serial ports and USB ports in VB. VB6 supports the serial ports easily but I see no reference to using the USB ports....
6
by: JustinC | last post by:
Does anyone know of a way, using C#, to programmatically block a Windows port? I've looked into some low level solutions like NDIS, but am hoping to find something that uses C#. Any help would be...
4
by: Jared | last post by:
I've got an app that requires communication with a remote web service. I've had customer reports of the "underlying connection was closed" error, and I assume this to indicate they've got Internet...
0
by: abcd | last post by:
Just curious if anyone had any information, or links, regarding the blocking of network ports and/or taking over (hijacking) ports using Python. Any python modules/libs you could recommend? ...
5
by: VeryMaqbool | last post by:
Does anyone know of a way, using C#, to programmatically block a Windows port? Futhermore I want to know how can we map processes to the ports opened on a computer using C# and without using...
2
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.