Definition at line 306 of file AsyncUDPSocketGSOTest.cpp.
Definition at line 349 of file AsyncUDPSocketGSOTest.cpp.
References folly::gen::move.
354 client = std::make_unique<UDPClient>(&
cevb, testData);
355 if (connectedAddress) {
356 client->setShouldConnect(*connectedAddress);
360 auto clientThread = std::thread([
this]() { cevb.loopForever(); });
363 cevb.waitUntilRunning();
366 cevb.runInEventBaseThread([&]() {
client->start(
server->address()); });
constexpr detail::Map< Move > move
std::unique_ptr< UDPClient > client
std::unique_ptr< UDPServer > server
void AsyncSocketGSOIntegrationTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 308 of file AsyncUDPSocketGSOTest.cpp.
309 server = std::make_unique<UDPServer>(
314 std::make_unique<std::thread>([
this]() { sevb.loopForever(); });
317 sevb.waitUntilRunning();
std::unique_ptr< std::thread > serverThread
std::unique_ptr< UDPServer > server
void AsyncSocketGSOIntegrationTest::startServer |
( |
| ) |
|
|
inline |
Definition at line 320 of file AsyncUDPSocketGSOTest.cpp.
323 LOG(INFO) <<
"Server listening=" <<
server->address();
bool runInEventBaseThreadAndWait(void(*fn)(T *), T *arg)
std::unique_ptr< UDPServer > server
void AsyncSocketGSOIntegrationTest::TearDown |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 326 of file AsyncUDPSocketGSOTest.cpp.
bool runInEventBaseThread(void(*fn)(T *), T *arg)
std::unique_ptr< std::thread > serverThread
std::unique_ptr< UDPServer > server
std::unique_ptr<UDPClient> AsyncSocketGSOIntegrationTest::client |
std::unique_ptr<UDPServer> AsyncSocketGSOIntegrationTest::server |
std::unique_ptr<std::thread> AsyncSocketGSOIntegrationTest::serverThread |
The documentation for this class was generated from the following file: