Function simics::api::simulator::callbacks::notify_on_socket

source ·
pub fn notify_on_socket<C>(
    sock: Socket,
    mode: NotifyMode,
    run_in_thread: bool,
    callback: Option<C>,
) -> Result<()>
where C: Fn() + 'static,
Expand description

Set a callback whenever a specific IO event occurs on the host on a given file descriptor. If callback is None, the callback is removed.

§Context

Cell Context Callback: Threaded Context if run_in_thread, Global Context otherwise