From d66e90733ebf263bdcd68aa275a0141755aa28ca Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 21 Oct 2018 14:30:44 +0200 Subject: rename create -> connect --- tests/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/main.cpp b/tests/main.cpp index 7bb63e2..2623884 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -17,7 +17,7 @@ int main() bool connectionFailure = false; try { - sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", 2222)).get(); + sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", 2222)).get(); } catch(sibs::BootstrapConnectionException &e) { @@ -25,7 +25,7 @@ int main() } REQUIRE(connectionFailure); - std::unique_ptr connection1 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get(); + std::unique_ptr connection1 = sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", PORT)).get(); bool gotData1 = false; bool gotAsdf1 = false; connection1->listen(key, [&gotData1, &gotAsdf1](const sibs::DirectConnectionPeer *peer, const void *data, const sibs::usize size) @@ -37,7 +37,7 @@ int main() return true; }); - std::unique_ptr connection2 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get(); + std::unique_ptr connection2 = sibs::BootstrapConnection::connect(sibs::Ipv4("127.0.0.1", PORT)).get(); bool gotData2 = false; bool gotAsdf2 = false; connection2->listen(key, [&gotData2, &gotAsdf2](const sibs::DirectConnectionPeer *peer, const void *data, const sibs::usize size) -- cgit v1.2.3