pub fn interruptible_recv(
    data: *mut u8,
    len: usize,
    timeout: i32,
    sock: &Sock
) -> IntrRecvError
Expand description

| Try to read a specified number of bytes | from a socket. Please read the “see also” | section for more detail. | | ———– | @param data | | The buffer where the read bytes should | be stored. | ––––– | @param len | | The number of bytes to read into the specified | buffer. | ––––– | @param timeout | | The total timeout in milliseconds for | this read. | ––––– | @param sock | | The socket (has to be in non-blocking | mode) from which to read bytes. | | ———– | @return | | An IntrRecvError indicating the resulting | status of this read. | | IntrRecvError::OK only if all of the | specified number of bytes were read. | @see This function can be interrupted | by calling InterruptSocks5(bool). | | Sockets can be made non-blocking with | SetSocketNonBlocking(const | | Socket&, bool). |