Definition at line 115 of file AsyncUDPSocketGSOTest.cpp.
Definition at line 91 of file AsyncUDPSocketTest.cpp.
std::vector< folly::EventBase > evbs_
const folly::SocketAddress addr_
void UDPServer::pauseAccepting |
( |
| ) |
|
|
inline |
void UDPServer::pauseAccepting |
( |
| ) |
|
|
inline |
void UDPServer::resumeAccepting |
( |
| ) |
|
|
inline |
void UDPServer::resumeAccepting |
( |
| ) |
|
|
inline |
void UDPServer::setChangePortForWrites |
( |
bool |
changePortForWrites | ) |
|
|
inline |
void UDPServer::shutdown |
( |
| ) |
|
|
inline |
void UDPServer::shutdown |
( |
| ) |
|
|
inline |
void UDPServer::start |
( |
| ) |
|
|
inline |
Definition at line 94 of file AsyncUDPSocketTest.cpp.
References evb_, i, folly::EventBase::isInEventBaseThread(), folly::gen::move, socket_, and folly::pushmi::detail::t.
97 socket_ = std::make_unique<AsyncUDPServerSocket>(
evb_, 1500);
100 socket_->bind(
addr_);
101 VLOG(4) <<
"Server listening on " << socket_->address().describe();
102 }
catch (
const std::exception& ex) {
103 LOG(FATAL) << ex.what();
111 for (
auto& evb :
evbs_) {
114 std::thread
t([&]() { evb.loopForever(); });
116 evb.waitUntilRunning();
std::vector< std::thread > threads_
std::unique_ptr< AsyncUDPServerSocket > socket_
bool changePortForWrites_
constexpr detail::Map< Move > move
bool isInEventBaseThread() const
std::vector< folly::EventBase > evbs_
std::vector< UDPAcceptor > acceptors_
const folly::SocketAddress addr_
void UDPServer::start |
( |
| ) |
|
|
inline |
Definition at line 120 of file AsyncUDPSocketGSOTest.cpp.
References evb_, i, folly::EventBase::isInEventBaseThread(), folly::gen::move, socket_, and folly::pushmi::detail::t.
123 socket_ = std::make_unique<AsyncUDPServerSocket>(
evb_, 1500);
126 socket_->bind(
addr_);
127 VLOG(4) <<
"Server listening on " << socket_->address().describe();
128 }
catch (
const std::exception& ex) {
129 LOG(FATAL) << ex.what();
137 for (
auto& evb :
evbs_) {
140 std::thread
t([&]() { evb.loopForever(); });
142 evb.waitUntilRunning();
std::vector< std::thread > threads_
std::unique_ptr< AsyncUDPServerSocket > socket_
constexpr detail::Map< Move > move
bool isInEventBaseThread() const
std::vector< folly::EventBase > evbs_
std::vector< UDPAcceptor > acceptors_
const folly::SocketAddress addr_
bool UDPServer::changePortForWrites_ {true} |
|
private |
std::vector< std::thread > UDPServer::threads_ |
|
private |
The documentation for this class was generated from the following files: