- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I'm trying to implement interprocess communication of individual programs by using named pipes. I have not worked with this before, but it seems to me that doing that under Windows is something that is not being done often, since I could not find much documentation and explanations about this topic.
My question is: how do the OPEN,WRITE and READ commands look like for named pipes? How can I ensure, under Windows, that both of the programs work with the same piece of memory?
Another interesting question is if .NET applications that use pipes created by the piping mechanism implemented into the .NET framework (NamedPipeClientStream, NamedPipeServerStream, ...) can communicate with FORTRAN programs via these pipes; that means if it is possible that the ".NET pipes" (with whatever technique lies underneath the .NET surface) can communcate with the "FORTRAN pipes".
Thanks in advance for your thoughts on this!
I'm trying to implement interprocess communication of individual programs by using named pipes. I have not worked with this before, but it seems to me that doing that under Windows is something that is not being done often, since I could not find much documentation and explanations about this topic.
My question is: how do the OPEN,WRITE and READ commands look like for named pipes? How can I ensure, under Windows, that both of the programs work with the same piece of memory?
Another interesting question is if .NET applications that use pipes created by the piping mechanism implemented into the .NET framework (NamedPipeClientStream, NamedPipeServerStream, ...) can communicate with FORTRAN programs via these pipes; that means if it is possible that the ".NET pipes" (with whatever technique lies underneath the .NET surface) can communcate with the "FORTRAN pipes".
Thanks in advance for your thoughts on this!
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do a lot of pipe stuff, but it is all in C and called from Fortran. This actually has survived quite well since the first Windows port 15 years ago. I hesitate to describe it as ".NET pipes", perhaps this is the same as Windows pipes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ".NET pipes" I was referring to are included in the .NET framework since v3.5 ( see f.e. http://www.codeproject.com/KB/threads/dotnetnamedpipespart1.aspx).
So can you give me a hint on how I should proceed in using pipes in Fortran, meaning if there are any callable libraries for that (as you mentioned maybe in C), and if so how to get and use them?
So can you give me a hint on how I should proceed in using pipes in Fortran, meaning if there are any callable libraries for that (as you mentioned maybe in C), and if so how to get and use them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On re-reading your post, I see you are looking to interop Fortran pipes with .NET pipes. Perhaps you inherited some apps and feel that the easiest point of integration is at the pipe level. I don't have any data on that. I do know that Fortran works OK calling Windows system calls that manage pipes, and I don't think it matters what language is on the other end so long as it is Windows pipes. I doubt that Fortran, Windows and .NET pipes interoperate, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Disregarding the ".NET pipes", I'd also be interested in how Fortran uses Windows system calls that manage pipes - meaning what libraries to I have to use for that, and if there are example codes or manuals that describe how to do this. Do you know where I can find something like this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you do a search for "pipes" on these threads, you will find the subject has many (~105) relevant posts, some of which which may be of assistance to you.
e.g. http://software.intel.com/en-us/forums/showthread.php?t=61838&o=a&s=lr
e.g. http://software.intel.com/en-us/forums/showthread.php?t=61838&o=a&s=lr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is another link that might help:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365781%28v=vs.85%29.aspx
Regards,
Jrg
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365781%28v=vs.85%29.aspx
Regards,
Jrg

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page