From d06524012a90936df7b896151009cc4d680556c9 Mon Sep 17 00:00:00 2001 From: Matthew Biskas Date: Tue, 13 Jan 2026 11:26:35 +0100 Subject: [PATCH] fix error codes --- src/core/libraries/rudp/rudp_error.h | 58 +++++++++++++++++----------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/src/core/libraries/rudp/rudp_error.h b/src/core/libraries/rudp/rudp_error.h index e7ae0bf72..5c83fb626 100644 --- a/src/core/libraries/rudp/rudp_error.h +++ b/src/core/libraries/rudp/rudp_error.h @@ -4,28 +4,42 @@ #pragma once constexpr int ORBIS_RUDP_ERROR_NOT_INITIALIZED = 0x80770001; -constexpr int ORBIS_RUDP_ERROR_INVALID_ARGUMENT = 0x80770004; -constexpr int ORBIS_RUDP_ERROR_INVALID_CONTEXT_ID = 0x80770003; -constexpr int ORBIS_RUDP_ERROR_INVALID_POLL_ID = 0x8077001f; -constexpr int ORBIS_RUDP_ERROR_TOO_MANY_CONTEXTS = 0; -constexpr int ORBIS_RUDP_ERROR_CANCELLED = 0x80770014; constexpr int ORBIS_RUDP_ERROR_ALREADY_INITIALIZED = 0x80770002; +constexpr int ORBIS_RUDP_ERROR_INVALID_CONTEXT_ID = 0x80770003; +constexpr int ORBIS_RUDP_ERROR_INVALID_ARGUMENT = 0x80770004; +constexpr int ORBIS_RUDP_ERROR_INVALID_OPTION = 0x80770005; +constexpr int ORBIS_RUDP_ERROR_INVALID_MUXMODE = 0x80770006; constexpr int ORBIS_RUDP_ERROR_MEMORY = 0x80770007; +constexpr int ORBIS_RUDP_ERROR_INTERNAL = 0x80770008; +constexpr int ORBIS_RUDP_ERROR_CONN_RESET = 0x80770009; +constexpr int ORBIS_RUDP_ERROR_CONN_REFUSED = 0x8077000A; +constexpr int ORBIS_RUDP_ERROR_CONN_TIMEOUT = 0x8077000B; +constexpr int ORBIS_RUDP_ERROR_CONN_VERSION_MISMATCH = 0x8077000C; +constexpr int ORBIS_RUDP_ERROR_CONN_TRANSPORT_TYPE_MISMATCH = 0x8077000D; +constexpr int ORBIS_RUDP_ERROR_CONN_QUALITY_LEVEL_MISMATCH = 0x8077000E; +constexpr int ORBIS_RUDP_ERROR_THREAD = 0x8077000F; +constexpr int ORBIS_RUDP_ERROR_THREAD_IN_USE = 0x80770010; constexpr int ORBIS_RUDP_ERROR_NOT_ACCEPTABLE = 0x80770011; -constexpr int ORBIS_RUDP_ERROR_THREAD_IN_USE = 0; -constexpr int ORBIS_RUDP_ERROR_THREAD = 0; -constexpr int ORBIS_RUDP_ERROR_INVALID_SOCKET = 0; -constexpr int ORBIS_RUDP_ERROR_NO_EVENT_HANDLER = 0; -constexpr int ORBIS_RUDP_ERROR_INVALID_MUXMODE = 0; -constexpr int ORBIS_RUDP_ERROR_INVALID_VPORT = 0; -constexpr int ORBIS_RUDP_ERROR_VPORT_EXHAUSTED = 0; -constexpr int ORBIS_RUDP_ERROR_CONN_TIMEOUT = 0; -constexpr int ORBIS_RUDP_ERROR_NOT_BOUND = 0; -constexpr int ORBIS_RUDP_ERROR_ADDR_IN_USE = 0; -constexpr int ORBIS_RUDP_ERROR_IN_PROGRESS = 0; -constexpr int ORBIS_RUDP_ERROR_WOULDBLOCK = 0; -constexpr int ORBIS_RUDP_ERROR_MSG_TOO_LARGE = 0; -constexpr int ORBIS_RUDP_ERROR_BUFFER_TOO_SMALL = 0; -constexpr int ORBIS_RUDP_ERROR_END_OF_DATA = 0; -constexpr int ORBIS_RUDP_ERROR_MSG_MALFORMED = 0; -constexpr int ORBIS_RUDP_ERROR_INVALID_OPTION = 0; \ No newline at end of file +constexpr int ORBIS_RUDP_ERROR_MSG_TOO_LARGE = 0x80770012; +constexpr int ORBIS_RUDP_ERROR_NOT_BOUND = 0x80770013; +constexpr int ORBIS_RUDP_ERROR_CANCELLED = 0x80770014; +constexpr int ORBIS_RUDP_ERROR_INVALID_VPORT = 0x80770015; +constexpr int ORBIS_RUDP_ERROR_WOULDBLOCK = 0x80770016; +constexpr int ORBIS_RUDP_ERROR_VPORT_IN_USE = 0x80770017; +constexpr int ORBIS_RUDP_ERROR_VPORT_EXHAUSTED = 0x80770018; +constexpr int ORBIS_RUDP_ERROR_INVALID_SOCKET = 0x80770019; +constexpr int ORBIS_RUDP_ERROR_BUFFER_TOO_SMALL = 0x8077001A; +constexpr int ORBIS_RUDP_ERROR_MSG_MALFORMED = 0x8077001B; +constexpr int ORBIS_RUDP_ERROR_ADDR_IN_USE = 0x8077001C; +constexpr int ORBIS_RUDP_ERROR_ALREADY_BOUND = 0x8077001D; +constexpr int ORBIS_RUDP_ERROR_ALREADY_EXISTS = 0x8077001E; +constexpr int ORBIS_RUDP_ERROR_INVALID_POLL_ID = 0x8077001F; +constexpr int ORBIS_RUDP_ERROR_TOO_MANY_CONTEXTS = 0x80770020; +constexpr int ORBIS_RUDP_ERROR_IN_PROGRESS = 0x80770021; +constexpr int ORBIS_RUDP_ERROR_NO_EVENT_HANDLER = 0x80770022; +constexpr int ORBIS_RUDP_ERROR_PAYLOAD_TOO_LARGE = 0x80770023; +constexpr int ORBIS_RUDP_ERROR_END_OF_DATA = 0x80770024; +constexpr int ORBIS_RUDP_ERROR_ALREADY_ESTABLISHED = 0x80770025; +constexpr int ORBIS_RUDP_ERROR_KEEP_ALIVE_FAILURE = 0x80770026; +constexpr int ORBIS_RUDP_ERROR_MEMLEAK = 0x807700FF; +