Definition at line 325 of file AsyncUDPSocketTest.cpp.
Definition at line 367 of file AsyncUDPSocketTest.cpp.
References folly::Optional< Value >::hasValue(), and folly::gen::move.
370 if (useConnectedWrite) {
372 client = std::make_unique<ConnectedWriteUDPClient>(&
cevb);
373 client->setShouldConnect(*connectedAddress);
375 client = std::make_unique<UDPClient>(&
cevb);
376 if (connectedAddress) {
377 client->setShouldConnect(*connectedAddress);
constexpr detail::Map< Move > move
std::unique_ptr< UDPServer > server
FOLLY_CPP14_CONSTEXPR bool hasValue() const noexcept
bool runInEventBaseThread(void(*fn)(T *), T *arg)
std::unique_ptr< UDPClient > client
void AsyncSocketIntegrationTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 327 of file AsyncUDPSocketTest.cpp.
328 server = std::make_unique<UDPServer>(
333 std::make_unique<std::thread>([
this]() { sevb.loopForever(); });
336 sevb.waitUntilRunning();
std::unique_ptr< UDPServer > server
std::unique_ptr< std::thread > serverThread
void AsyncSocketIntegrationTest::startServer |
( |
| ) |
|
|
inline |
Definition at line 339 of file AsyncUDPSocketTest.cpp.
342 LOG(INFO) <<
"Server listening=" <<
server->address();
bool runInEventBaseThreadAndWait(void(*fn)(T *), T *arg)
std::unique_ptr< UDPServer > server
void AsyncSocketIntegrationTest::TearDown |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 345 of file AsyncUDPSocketTest.cpp.
std::unique_ptr< UDPServer > server
bool runInEventBaseThread(void(*fn)(T *), T *arg)
std::unique_ptr< std::thread > serverThread
std::unique_ptr<UDPClient> AsyncSocketIntegrationTest::client |
std::unique_ptr<UDPServer> AsyncSocketIntegrationTest::server |
std::unique_ptr<std::thread> AsyncSocketIntegrationTest::serverThread |
The documentation for this class was generated from the following file: