Function ntcore_sys::NT_PollRpcTimeout [] [src]

pub unsafe extern "C" fn NT_PollRpcTimeout(
    poller: NT_RpcCallPoller,
    len: *mut usize,
    timeout: f64,
    timed_out: *mut NT_Bool
) -> *mut NT_RpcAnswer

Get the next incoming RPC call. This blocks until the next incoming RPC call is received or it times out. This is intended to be used with NT_CreatePolledRpc(); RPC calls created using NT_CreateRpc() will not be serviced through this function. Upon successful return, NT_PostRpcResponse() must be called to send the return value to the caller. The returned array must be freed using NT_DisposeRpcAnswerArray(). @param poller poller handle @param len length of returned array (output) @param timeout timeout, in seconds @param timed_out true if the timeout period elapsed (output) @return Array of RPC call information. If NULL is returned and timed_out is also false, an error occurred (e.g. the instance was invalid or is shutting down).