Add queue buffers & simulation support to web proxy
This makes a couple of major changes:
-Directly uses EPoll class for managing Seasocks events.
-Adds buffers of queues to web proxy Subscribers so that we can
transfering data losslessly in log replay.
-Modifies the flatbuffer used for the RTC communications so that
the webpage can specify whether it wants every message or subsampled
messages.
-Adds an option to LogReader to let us run past the end of the logfile.
Note that these changes do mean that, for log replay, the web proxy will
load the *entire* logfile into memory. Future changes can optimize this
to, e.g., only load the required channels into memory.
Change-Id: I74e7608c30baa8b36e05c4ab50e12a54bf75aa4c
diff --git a/aos/configuration.cc b/aos/configuration.cc
index ad2e295..6fce2e0 100644
--- a/aos/configuration.cc
+++ b/aos/configuration.cc
@@ -631,7 +631,8 @@
<< type << "\" }";
}
- // Then look for the channel.
+ // Then look for the channel (note that this relies on the channels being
+ // sorted in the config).
auto channel_iterator =
std::lower_bound(config->channels()->cbegin(), config->channels()->cend(),
std::make_pair(name, type), CompareChannels);