Bug fixes & updated SocketSelector example.

This commit is contained in:
Cloaked9000
2016-12-15 15:47:19 +00:00
parent 2aeff56569
commit 7d3e0fe5c8
5 changed files with 58 additions and 98 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ namespace fr
if(select_result == 0) //If it's timed out
return false;
else if(select_result == SOCKET_ERROR) //Else if error
throw std::logic_error("select() returned -1");
throw std::logic_error("select() returned -1. Errno: " + std::to_string(errno));
return true;
}