Server errors are now shown.

This commit is contained in:
lotodore
2007-06-04 17:04:03 +00:00
parent 8c9fbca0fb
commit 686c028b38
4 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ ServerThread::Listen()
{
ServerContext &context = GetContext();
// if (context.GetServerPort() < 1024)
// throw ServerException(ERR_SOCK_INVALID_PORT, 0);
if (context.GetServerPort() < 1024)
throw ServerException(ERR_SOCK_INVALID_PORT, 0);
context.SetSocket(socket(context.GetAddrFamily(), SOCK_STREAM, context.GetProtocol()));
if (!IS_VALID_SOCKET(context.GetSocket()))