aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-21 14:30:44 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commitd66e90733ebf263bdcd68aa275a0141755aa28ca (patch)
treefc695f9f231b4556e12bcf954e018203f02a3ec1 /tests
parentf96ed2f3195166485875e801cd0d923023a2dd4e (diff)
rename create -> connect
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp6
1 files changed, 3 insertions, 3 deletions
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<sibs::BootstrapConnection> connection1 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get();
+ std::unique_ptr<sibs::BootstrapConnection> 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<sibs::BootstrapConnection> connection2 = sibs::BootstrapConnection::create(sibs::Ipv4("127.0.0.1", PORT)).get();
+ std::unique_ptr<sibs::BootstrapConnection> 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)