fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

fix(broker):Added windows pipe socket communication, compatible with other systems #199 #202

Closed xinkonglili closed 4 months ago

xinkonglili commented 4 months ago

I added pipe socket conditions for different systems and used the open source project npipe, which nicely encapsulates the operation of the Windows pipe and returns a net.Conn type connection, compatible with hmq, making it very convenient for Windows users like us. I noticed that in the last committed Unix socket communication, the name UnixSocket is not standard, it should be unixSocket. I'm terribly sorry.

xinkonglili commented 4 months ago

Our project uses pipe communication, which is very needed. After many tests, the code has no errors. I hope the author can merge the code and re-release a version, thank you very much @chowyu08

xinkonglili commented 4 months ago

Thank you very much, the code has been committed, you can close issuess image