diff --git a/modules/ripple_asio/sockets/ripple_MultiSocket.cpp b/modules/ripple_asio/sockets/ripple_MultiSocket.cpp index de108d4c7d..3dc5cc3b63 100644 --- a/modules/ripple_asio/sockets/ripple_MultiSocket.cpp +++ b/modules/ripple_asio/sockets/ripple_MultiSocket.cpp @@ -178,21 +178,43 @@ public: { } + //-------------------------------------------------------------------------- + enum { - timeoutSeconds = 3 + timeoutSeconds = 1 }; template - void testProtocol (Arg const& arg) + PeerTest::Results runProtocol (Arg const& arg) { - PeerTest::report_async , Arg> - (*this, timeoutSeconds, true); + return PeerTest::run , + TestPeerLogicAsyncServer, TestPeerLogicAsyncClient> (arg, timeoutSeconds); + } + + // Analyzes the results of the test based on the flags + // + void reportResults (int flags, PeerTest::Results const& results) + { + if ( (flags & MultiSocketDetails::client_ssl) != 0) + { + if ( ((flags & MultiSocketDetails::server_ssl) == 0) && + ((flags & MultiSocketDetails::server_ssl_required) == 0)) + { + } + } + else + { + } + + results.report (*this); } void testOptions (int flags) { - testProtocol (flags); + PeerTest::Results const results = runProtocol (flags); + + results.report (*this); } //--------------------------------------------------------------------------