summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-15 21:10:14 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:57 +0100
commit7cddb6237418f2d7ec984cd0d4cbdac7140330b0 (patch)
treeaf556ec335cf43ab0adeedd9bf86e4995b072b5c /tests
parentcNetwork: Rewritten server listen into a factory method. (diff)
downloadcuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.gz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.bz2
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.lz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.xz
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.tar.zst
cuberite-7cddb6237418f2d7ec984cd0d4cbdac7140330b0.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/Network/EchoServer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Network/EchoServer.cpp b/tests/Network/EchoServer.cpp
index 1e0ac023f..333c31e08 100644
--- a/tests/Network/EchoServer.cpp
+++ b/tests/Network/EchoServer.cpp
@@ -22,6 +22,11 @@ class cEchoServerCallbacks:
a_Link.Send("Welcome to the simple echo server.\r\n");
LOGD("Welcome message queued.");
}
+
+ virtual void OnError(int a_ErrorCode, const AString & a_ErrorMsg) override
+ {
+ LOGWARNING("An error occured while listening for connections: %d (%s).", a_ErrorCode, a_ErrorMsg.c_str());
+ }
};