Closed mxpv closed 3 years ago
@mxpv I think we should also handle the vsock connection
I haven't tried/tested vsock connections (I have a slightly different use case). I can TAL later on it as well. Meantime would you be interested to have this PR as is?
@mxpv I think you can add a adjective for names of client_connect
and connect
like connect_unix
or something to clarify vsock is not supported.
@Tim-Zhang updated
@Tim-Zhang good catch, thanks. done.
In current implementation
Client
must be created fromRawFd
handle. This forces crate users to importnix
dependency in their projects just to create a Client instance. So this PR adds a shortcutClient::connect(path)
to make it more user friendly.Signed-off-by: Maksym Pavlenko pavlenko.maksym@gmail.com