Skip to content

Commit

Permalink
Clarify TcpSocket::recv_queue() semantics. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jun 22, 2019
1 parent 4cec6ee commit 60b67c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,9 @@ impl<'a> TcpSocket<'a> {
self.tx_buffer.len()
}

/// Return the amount of octets queued in the receive buffer.
/// Return the amount of octets queued in the receive buffer. This value can be larger than
/// the slice read by the next `recv` or `peek` call because it includes all queued octets,
/// and not only the octets that may be returned as a contiguous slice.
///
/// Note that the Berkeley sockets interface does not have an equivalent of this API.
pub fn recv_queue(&self) -> usize {
Expand Down

0 comments on commit 60b67c4

Please sign in to comment.