I
illegal.prime
Hi all, I've been looking into doing some interprocess communication
and have been reading about named pipes. Everyone seems to indicate
that if the processes are either on your local PC or at least on your
local LAN AND your messages are reasonably small (under a kilobyte) -
then named pipes are the right solution.
But all of the implementations I've seen seem to just be writing and
reading to a file. Is named pipes just a marketing term for regular
old file I/O.
Here are the two implementations I've looked at:
http://www.codeproject.com/csharp/DotNetNamedPipesPart1.asp
http://i-d-e-a-s.blogspot.com/
I think the second URL provides a more concise implementation so that I
can more easily use the code myself in my own project. As opposed to
the first one - which while well architected in design all comes with
lots of classes, interfaces and even a prebuilt dll to which you don't
have the source.
Am I gaining anything by using the implementation in the second URL
over just using a regular write and read to and from a file? If not,
is there some inter-process code that is relatively concise that would
be superior to just reading and writing to a file?
Thanks,
Novice
and have been reading about named pipes. Everyone seems to indicate
that if the processes are either on your local PC or at least on your
local LAN AND your messages are reasonably small (under a kilobyte) -
then named pipes are the right solution.
But all of the implementations I've seen seem to just be writing and
reading to a file. Is named pipes just a marketing term for regular
old file I/O.
Here are the two implementations I've looked at:
http://www.codeproject.com/csharp/DotNetNamedPipesPart1.asp
http://i-d-e-a-s.blogspot.com/
I think the second URL provides a more concise implementation so that I
can more easily use the code myself in my own project. As opposed to
the first one - which while well architected in design all comes with
lots of classes, interfaces and even a prebuilt dll to which you don't
have the source.
Am I gaining anything by using the implementation in the second URL
over just using a regular write and read to and from a file? If not,
is there some inter-process code that is relatively concise that would
be superior to just reading and writing to a file?
Thanks,
Novice