Tidy up beast_asio

This commit is contained in:
Vinnie Falco
2013-08-09 20:31:45 -07:00
parent a277fc3fbb
commit 4d93e0972c
27 changed files with 533 additions and 467 deletions

View File

@@ -183,17 +183,11 @@ public:
timeoutSeconds = 3
};
template <typename Details, class Arg>
void testAsync (Arg const& arg)
{
TestPeerTestType::run <Details, TestPeerLogicAsyncServer, TestPeerLogicAsyncClient, Arg>
(arg, timeoutSeconds).report (*this);
}
template <typename InternetProtocol, class Arg>
void testProtocol (Arg const& arg)
{
testAsync <MultiSocketDetailsType <InternetProtocol> > (arg);
PeerTest::report_async <MultiSocketDetailsType <InternetProtocol>, Arg>
(*this, timeoutSeconds, true);
}
void testOptions (int flags)