Function simics::api::simulator::callbacks::_notify_on_socket

source ·
fn _notify_on_socket<C>(
    sock: Socket,
    mode: NotifyMode,
    run_in_thread: bool,
    callback: Option<C>,
)
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