Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2019-09-17 12:05:53 +0300
committereidheim <eidheim@gmail.com>2019-09-17 12:05:53 +0300
commit7bbea788cbaad9d63c574bb0621c32f74a6af9be (patch)
tree87af7d06477a8a1e39987a23b37a2e5515c72a54 /tests
parentcb96ac5223bafd40d6d924b1d2d45b59598f6268 (diff)
Deprecated Server::Connection::remote_endpoint_address() and Server::Connection::remote_endpoint_port()
Diffstat (limited to 'tests')
-rw-r--r--tests/io_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io_test.cpp b/tests/io_test.cpp
index 2b00b90..e056872 100644
--- a/tests/io_test.cpp
+++ b/tests/io_test.cpp
@@ -31,8 +31,8 @@ int main() {
echo.on_open = [&server_callback_count](shared_ptr<WsServer::Connection> connection) {
++server_callback_count;
- ASSERT(!connection->remote_endpoint_address().empty());
- ASSERT(connection->remote_endpoint_port() > 0);
+ ASSERT(!connection->remote_endpoint().address().to_string().empty());
+ ASSERT(connection->remote_endpoint().port() > 0);
};
echo.on_close = [&server_callback_count](shared_ptr<WsServer::Connection> /*connection*/, int /*status*/, const string & /*reason*/) {