const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET;
const char kSourceAddressTokenSecret[] = "secret";
-const uint32 kServerInitialFlowControlWindow = 100 * net::kMaxPacketSize;
} // namespace
use_recvmmsg_(false),
crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()),
supported_versions_(QuicSupportedVersions()) {
- // Use hardcoded crypto parameters for now.
- config_.SetDefaults();
Initialize();
}
crypto_config_.AddDefaultConfig(
QuicRandom::GetInstance(), &clock,
QuicCryptoServerConfig::ConfigOptions()));
-
- // Set flow control options in the config.
- config_.SetInitialCongestionWindowToSend(kServerInitialFlowControlWindow);
}
QuicServer::~QuicServer() {
while (read) {
read = ReadAndDispatchSinglePacket(
fd_, port_, dispatcher_.get(),
- overflow_supported_ ? &packets_dropped_ : NULL);
+ overflow_supported_ ? &packets_dropped_ : nullptr);
}
}
if (event->in_events & EPOLLOUT) {