Sockets firewall problem

B

Boni

Dear all,
I am trying too use sockets for IPC communication on one and the same
machine. When following code is executed windows firewall pops up. Is there
any possibility to use sockets without a risk to be blocked by firewall.
private void ListenIPC( ){

while(true){

TcpListener tcpListener = new TcpListener(10);

tcpListener.Start();

Socket socketForClient = tcpListener.AcceptSocket();


if (socketForClient.Connected) ...
 
C

Carl Daniel [VC++ MVP]

B

Boni

Hi Carl,
is there any simple sort of IPC between managed and unmanaged on local
machine which is bidirectional, fast and don't care firewalls?
Thanks a lot,
Boni
 
C

Carl Daniel [VC++ MVP]

Boni said:
Hi Carl,
is there any simple sort of IPC between managed and unmanaged on local
machine which is bidirectional, fast and don't care firewalls?

Named pipes would seem a logical choice. Another option would be something
custom built using shared memory.

-cd
 
G

Guest

Named pipes would seem a logical choice. Another option would be something
custom built using shared memory.

These articles might help you.
http://www.codeproject.com/csharp/dotnetnamedpipespart1.asp
http://www.codeproject.com/csharp/dotnetnamedpipespart2.asp
http://www.codeproject.com/threads/NamedPipesTracing.asp
http://www.codeproject.com/threads/anonpipe1.asp

The .NET articles are in C#. if you use MC++ or C++/CLI for your managed app
you can simply translate them. the classes and methods stay the same.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 

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

Top