This source file includes following definitions.
- SetSmallSocket
- DisableRecvmmsg
- GetDispatcher
#include "net/tools/quic/test_tools/quic_server_peer.h"
#include "net/tools/quic/quic_dispatcher.h"
#include "net/tools/quic/quic_server.h"
namespace net {
namespace tools {
namespace test {
bool QuicServerPeer::SetSmallSocket(QuicServer* server) {
int size = 1024 * 10;
return setsockopt(
server->fd_, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)) != -1;
}
void QuicServerPeer::DisableRecvmmsg(QuicServer* server) {
server->use_recvmmsg_ = false;
}
QuicDispatcher* QuicServerPeer::GetDispatcher(QuicServer* server) {
return server->dispatcher_.get();
}
}
}
}