Skip to main content

bind

Function bind 

Source
pub async fn bind<P>(path: P) -> Result<IpcListener, Error>
where P: AsRef<Path>,
Expand description

Bind a Unix domain socket listener.

Returns the listener ready to accept connections.

ยงExamples

use monocoque_core::ipc;

let listener = ipc::bind("/tmp/socket.sock").await?;