Skip to content

Comment on Named Pipes in .NET 6 with Tray Icon and Serviceparent

Comments

It becomes an issue if the data you're reading or writing is larger than 1024 bytes and you are in PipeTransmissionMode.Message, because of some implementation details with buffers and how StreamReader/Writer handle Read/Write calls on the underlying NamedPipe(Client/Server)Stream

See https://stackoverflow.com/questions/31936100/namedpipeserver...

Thanks for the info, I personally avoid the message mode and just operate on bytes so that could be why I haven't had problems with it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.