Index: net/tools/quic/quic_packet_reader.h |
diff --git a/net/tools/quic/quic_packet_reader.h b/net/tools/quic/quic_packet_reader.h |
index 22a6f49d4aa8c84ddbe0b2969f1706ef4bcd3206..6ffe26bc2af68bb8c8aa436a041bebe937e60705 100644 |
--- a/net/tools/quic/quic_packet_reader.h |
+++ b/net/tools/quic/quic_packet_reader.h |
@@ -48,16 +48,22 @@ class QuicPacketReader { |
ProcessPacketInterface* processor, |
QuicPacketCount* packets_dropped); |
- // Same as ReadAndDispatchPackets, only does one packet at a time. |
+ private: |
+ // Initialize the internal state of the reader. |
+ void Initialize(); |
+ |
+ // Reads and dispatches many packets using recvmmsg. |
+ bool ReadAndDispatchManyPackets(int fd, |
+ int port, |
+ ProcessPacketInterface* processor, |
+ QuicPacketCount* packets_dropped); |
+ |
+ // Reads and dispatches a single packet using recvmsg. |
static bool ReadAndDispatchSinglePacket(int fd, |
int port, |
ProcessPacketInterface* processor, |
QuicPacketCount* packets_dropped); |
- private: |
- // Initialize the internal state of the reader. |
- void Initialize(); |
- |
// Storage only used when recvmmsg is available. |
#if MMSG_MORE |