solana_streamer::packet

Function recv_from

source
pub fn recv_from(
    batch: &mut PacketBatch,
    socket: &UdpSocket,
    max_wait: Duration,
) -> Result<usize>