noli
V2EX  ›  C#

dotnet core 2.0+ 的 NamedPipe 在 *nix 上是用 Unix domain socket 实现的吗?

  •  
  •   noli · May 24, 2018 · 4362 views
    This topic created in 2934 days ago, the information mentioned may be changed or developed.
    3 replies    2018-07-01 22:06:14 +08:00
    salamanderMH
        1
    salamanderMH  
       Jun 11, 2018
    unix 本身就是有命名管道
    noli
        3
    noli  
    OP
       Jul 1, 2018
    @salamanderMH @whywhy36

    根据 https://github.com/dotnet/corefx/issues/25792
    至少,在 2017 年之后,NamedPipe 在 *nix 上已经是使用 Unix Domain Socket 来实现的

    在这个 issue 中提到: https://github.com/dotnet/corefx/pull/6833https://github.com/dotnet/corefx/issues/1849
    2015 年的时候已经提议用 Unix Domain Socket 来实现 .net core 中的 NamedPipe。
    2016 年的时候,已经实现了用 unix domain socket 模拟 NamedPipe 在 Windows 上的行为(双向双工)

    同时 #25792 还提到,如果确实希望使用 经典的 *nix Named Pipe (单向)
    可以使用 Mono.Posix.NetStandard ( https://www.nuget.org/packages/Mono.Posix.NETStandard/)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:15 · PVG 21:15 · LAX 06:15 · JFK 09:15
    ♥ Do have faith in what you're doing.