Network: Add ResolveError handling

Former-commit-id: 0dc3d109284e8b475577bf44cbaeb503c4baae73
This commit is contained in:
Lynix
2015-11-10 13:24:25 +01:00
parent 5f0aa64555
commit 4ad1a47064
5 changed files with 83 additions and 14 deletions

View File

@@ -9,6 +9,22 @@
namespace Nz
{
enum ResolveError
{
ResolveError_NoError,
ResolveError_Internal, //< An internal error occured
ResolveError_ResourceError, //< The operating system lacks the resources to proceed (insufficient memory)
ResolveError_NonRecoverable, //< An nonrecoverable error occured
ResolveError_NotFound, //< No such host is known
ResolveError_NotInitialized, //< Nazara network has not been initialized
ResolveError_ProtocolNotSupported, //< A specified protocol is not supported by the server
ResolveError_TemporaryFailure, //< A temporary failure occured, try again
ResolveError_Unknown, //< The last operation failed with an unlisted error code
ResolveError_Max = ResolveError_TemporaryFailure
};
enum NetProtocol
{
NetProtocol_Any,