1
0

cNetwork: Added an OnError callback for listening servers.

The callback receives the error details.
This commit is contained in:
Mattes D
2015-01-15 21:10:14 +01:00
parent 646e636933
commit 7cddb62374
3 changed files with 13 additions and 0 deletions

View File

@@ -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());
}
};