fix(server): removed unused error code and added missing error codes to error string
This commit is contained in:
parent
643b7a3c66
commit
b7c6d64165
2 changed files with 10 additions and 5 deletions
|
|
@ -25,11 +25,10 @@ typedef enum {
|
|||
COSMS_CORE_SERVER_FAILED_TO_CREATE_SOCKET = -1,
|
||||
COSMS_CORE_SERVER_COULD_NOT_BIND_ADDRESS = -2,
|
||||
COSMS_CORE_SERVER_UNKNOWN_ERROR = -3,
|
||||
COSMS_CORE_SERVER_TYPE_NOT_SUPPORTED = -4,
|
||||
COSMS_CORE_SERVER_FAILED_TO_RECEIVE = -5,
|
||||
COSMS_CORE_SERVER_FAILED_TO_SEND = -6,
|
||||
COSMS_CORE_SERVER_FAILED_TO_ACCEPT = -7,
|
||||
COSMS_CORE_SERVER_COULD_NOT_SET_MODE = -8
|
||||
COSMS_CORE_SERVER_FAILED_TO_RECEIVE = -4,
|
||||
COSMS_CORE_SERVER_FAILED_TO_SEND = -5,
|
||||
COSMS_CORE_SERVER_FAILED_TO_ACCEPT = -6,
|
||||
COSMS_CORE_SERVER_COULD_NOT_SET_MODE = -7
|
||||
} CosmsCoreServerError;
|
||||
|
||||
struct cosms_core_server {
|
||||
|
|
|
|||
|
|
@ -169,6 +169,12 @@ const char *cosms_core_server_error_string(CosmsCoreServerError error) {
|
|||
case COSMS_CORE_SERVER_UNKNOWN_ERROR:
|
||||
return "cosms-core-server unkown error occured";
|
||||
|
||||
case COSMS_CORE_SERVER_FAILED_TO_RECEIVE:
|
||||
return "cosms-core-server";
|
||||
|
||||
case COSMS_CORE_SERVER_FAILED_TO_SEND:
|
||||
return "cosms-core-server ";
|
||||
|
||||
case COSMS_CORE_SERVER_FAILED_TO_ACCEPT:
|
||||
return "cosms-core-server failed to accept new connection";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue