Retrieves the amount of available data.
impl Socket {
fn pending_input(&self) -> Result<usize, Errno>
}Returns the number of bytes available for reading.
For streaming sockets, this is the total number of bytes available. For datagram sockets, this is the size of the next message.
socket(7) and SIOCINQ therein