Creating a Server over Unix Domain Socket #2514
-
I am writing a http server that works with it's host machine via a unix domain sockets. I am connecting to UDS via socket2. This is my code:
What is the right way to do this? I am getting an error saying cannot infer type for type parameter
While I am aware what is causing the issue: compiler not able to determine what does Please correct if my understanding is wrong. Can I get some help in this? This is fairly new to me and I can consider any other stable projects/implementations of sockets that works with hyper. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I went with using tokio::net::UnixListener instead of socket2. |
Beta Was this translation helpful? Give feedback.
I went with using tokio::net::UnixListener instead of socket2.