Skip to main content

bind

Function bind 

Source
pub async fn bind<P: AsRef<Path>>(path: P) -> Result<IpcListener>
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?;