start_ipc_listener

Function start_ipc_listener 

Source
pub fn start_ipc_listener<F: FnMut(IpcStream) + Send + 'static>(
    socket: &str,
    on_connection: F,
    on_connection_error: Option<fn(Error)>,
) -> Result<(), IpcServerError>
Expand description

Listen for incoming connections on the given socket.

ยงArguments

  • socket - The socket name to listen on.
  • on_connection - A function that will be invoked for each incoming connection.
  • on_connection_error - An optional function that will be invoked if there is an error accepting a connection.