Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. What about pipes?

What about pipes?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpc++question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Noodnik
    wrote on last edited by
    #1

    I recently had the need to stream data to a running application using anonymous pipes. I was very surprised to find it so hard in .NET! I ended up using the "CreatePipe()" and "CloseHandle()" functions using "DllImport(kernel32.dll)". Is there really no native support for pipes in the FCL?

    J 1 Reply Last reply
    0
    • N Noodnik

      I recently had the need to stream data to a running application using anonymous pipes. I was very surprised to find it so hard in .NET! I ended up using the "CreatePipe()" and "CloseHandle()" functions using "DllImport(kernel32.dll)". Is there really no native support for pipes in the FCL?

      J Offline
      J Offline
      Jeff Varszegi
      wrote on last edited by
      #2

      I'm an admitted "pipes" newbie; I've done some reading on named pipes, and that's about it. I think that MS is moving away from named pipes (which might not be the same thing you're talking about). I'd normally use sockets or something else, but I realize you might not have that luxury. Are you saying that this application you had to interface with is not your own, which dictates the choice of pipes? If so, and there's no direct support, I feel for ya. Regards, Jeff Varszegi

      N 1 Reply Last reply
      0
      • J Jeff Varszegi

        I'm an admitted "pipes" newbie; I've done some reading on named pipes, and that's about it. I think that MS is moving away from named pipes (which might not be the same thing you're talking about). I'd normally use sockets or something else, but I realize you might not have that luxury. Are you saying that this application you had to interface with is not your own, which dictates the choice of pipes? If so, and there's no direct support, I feel for ya. Regards, Jeff Varszegi

        N Offline
        N Offline
        Noodnik
        wrote on last edited by
        #3

        It's actually "anonymous pipes" I'm talking about (e.g., not "named pipes"). When you create an anonymous pipe, you get TWO handles - one you use on your side of the connection, the other you pass to the remote application. The pipe is "anonymous" in that there is no "name" for it - there is no need, as both sender and receiver can access it using the handles that are returned. The application I'm interfacing with is Microsoft Flight Simulator 2002 (MSFS2k2). There is a facility built in to MSFS2k2 to send it a "Flight Video" by passing it a handle to an open file containing the video. By using an anonymous pipe, I can have one process create and send a video to MSFS2K in real-time. This is what I want to do. I have it working now, but I sure am surprised if in fact MS.NET doesn't provide support for this - especially as it continues to be a necessary tool for interacting with MS products...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups