Server errors are now shown.
This commit is contained in:
1 parent
8c9fbca0fb
commit
686c028b38
4 files changed
+5
-3
No files matched your search
@@ -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()))
|
||||
|
||||
Reference in new issue
Block a user