Closed Tim-Zhang closed 4 years ago
Thanks! Please, in general, avoid reformatting of the code in the same pr and submit only actual changes.
Why do you need this api here?
Hi @NikVolf , I have already removed the formatting codes. We need abstract namespace socket which rust does not support for now. Through this api we could use a raw-fd created by nix to create Connection and Endpoint.
For more information please read examples/server-rawfd
and examples/client-rawfd
Thanks
@Tim-Zhang But if you using only unix sockets, you don't need this lib, do you?
Otherwise can you provide an example how this is supposed to work on both windows and *nix ?
Ah, you remind me! as our codes changing, we do not need this lib any more. sorry to interrupt, I should close the pull request.
Add support for construct Connection and Endpoint from raw file descriptor.
User can use from_raw_fd to increase flexibility, e.g. use nix instead of libc to support abstract domain socket.
Signed-off-by: Tim Zhang tim@hyper.sh