문제

Has anybody tried to connect to an abstract namespace path (which starts with a null character) on unix family addresses in nodejs? The problem seems to be that node internally sets the encoding of the path to ascii and consequently converts '\0' to space character. I tried buffers but didn't change anything.

If you wanna know what "abstract namespace" in unix address family means see the paragraph titled "abstract:" in "Address format" section of this link: http://man7.org/linux/man-pages/man7/unix.7.html

도움이 되었습니까?

해결책

It seems that special module should be used for: https://www.npmjs.org/package/abstractsocket

다른 팁

Since 0.12 this is supported by the core net module.

For 0.10: The the module proposed by socketpair uses child process api and an external utility socat (similar to netcat), and does not let you create servers, just client connections. A better alternative is https://www.npmjs.com/package/abstract-socket - it is a binary module instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top