mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-17 20:47:58 +00:00
net: translate ECONNRESET network error
This commit is contained in:
parent
dbc6b21343
commit
fe662086c0
4 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,7 @@ enum class Errno : u32 {
|
|||
INVAL = 22,
|
||||
MFILE = 24,
|
||||
MSGSIZE = 90,
|
||||
CONNRESET = 104,
|
||||
NOTCONN = 107,
|
||||
TIMEDOUT = 110,
|
||||
};
|
||||
|
|
|
@ -27,6 +27,8 @@ Errno Translate(Network::Errno value) {
|
|||
return Errno::NOTCONN;
|
||||
case Network::Errno::TIMEDOUT:
|
||||
return Errno::TIMEDOUT;
|
||||
case Network::Errno::CONNRESET:
|
||||
return Errno::CONNRESET;
|
||||
default:
|
||||
UNIMPLEMENTED_MSG("Unimplemented errno={}", value);
|
||||
return Errno::SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue