Re: Communications Between Program and Controlling Program



Named pipes if you are working within a single Windows domain (or domains with mutual
trust arrangements) and want security.

Sockets if you need to work across multiple domains. At that point, concepts like SSL and
other encryption layers have to be dealt with or any 12-year-old (of any age) with a
network connection can attack you.

Mailslots are not "reliable" communications mechanisms.

Also, no matter what your protocol is, make sure that you can handle multiple startup
messages, multiple shutdown messages, etc. (I built such a pair of programs, and debugging
them was a nightmare until I built a robust protocol so that either could be shut down and
restarted and the protocol would resynchronize)
joe

On 30 May 2006 13:55:35 -0700, "Jeff" <noloader@xxxxxxxxx> wrote:

Hi All,

I should have speciifed the kind of feedback:

Named Pipes \ Mailslot versus a socket, etc.

Jeff
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Transmitting data from one process to another.
    ... Another option could be to use Named Pipes which depending on your ... application protocol could be more efficient than using sockets. ... .NET does not have managed APIs for Named Pipes but here is a link to an ...
    (microsoft.public.dotnet.framework)
  • authentication (SRP*, DH, TLS)
    ... sockets instead of Named Pipes for IPC. ... Now I'm trying to recreate that with the tcp sockets version. ... "GNU Library General Public License" under. ... not sure (I'll assume this is LGPL) this is legal as LGPL ...
    (sci.crypt)
  • Re: IPC (process to multi-process)
    ... I'm intersted in "multicasting" capability. ... If the processes are all on the same machine, local sockets are probably ... multiple types, you might have the server process open multiple sockets, ... writing to the same segment, so you may want multiple shared memory ...
    (comp.os.linux.misc)
  • Re: Reliability of Java, sockets and TCP transmissions
    ... protocol whereby check sums are transmitted along with packets and ... handled by either the Java sockets or the TCP protocol already? ... "Java sockets" is a misnomer, since sockets are not specific to Java ...
    (comp.lang.java.programmer)
  • Re: Best way to do interprocess communication?
    ... My personal choice would be between named pipes and sockets. ... connectionless and can therefore broadcast. ... app) have a message pump and you can get a window handle, ...
    (microsoft.public.vc.mfc)