Skip to main content

spawn_controller

Function spawn_controller 

Source
pub fn spawn_controller(bind: &str, port: u16) -> Result<Arc<ControllerHandle>>
Expand description

Bind a listener and start the accept thread, return a non-blocking handle. Pass port = 0 to let the OS pick a free port; recover the chosen one via ControllerHandle::listen_addr.