Skip to main content

input_ended

Function input_ended 

Source
fn input_ended(socket: &UnixSeqpacket) -> Result<bool>
Expand description

Check if no more input will arrive after a zero byte read. That is the case once the peer closed its write side, which a SOCK_SEQPACKET socket reports as POLLRDHUP, and no data is queued anymore. Checking the flag first makes sure that no data arrives in between.