Skip to content

Instantly share code, notes, and snippets.

@pnegri
Created April 17, 2014 17:09
Show Gist options
  • Save pnegri/10998647 to your computer and use it in GitHub Desktop.
Save pnegri/10998647 to your computer and use it in GitHub Desktop.
ESocketErrors getErrors()
{
if (serverSocket == NULL) return SE_NO_ERROR;
// HotFix for 316 (Unkown error)
if (errno == 316) errno = 0;
return ISocketSubsystem::Get()->GetLastErrorCode();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment