diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-17 17:59:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 17:59:47 +0200 |
commit | ddedaa88753f649eb000cdbdbabfa55b4872ab27 (patch) | |
tree | 5c2f39dbc1dda51021c9688d64e12f8348bd66f0 /src/core/hle | |
parent | cmake: mark warning disable for gcc 11 (#11301) (diff) | |
parent | Improve behavior when sending to closed connection (diff) | |
download | yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.gz yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.bz2 yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.lz yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.xz yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.tar.zst yuzu-ddedaa88753f649eb000cdbdbabfa55b4872ab27.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/sockets/sockets.h | 2 | ||||
-rw-r--r-- | src/core/hle/service/sockets/sockets_translate.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/sockets/sockets.h b/src/core/hle/service/sockets/sockets.h index 77426c46e..f86af01a4 100644 --- a/src/core/hle/service/sockets/sockets.h +++ b/src/core/hle/service/sockets/sockets.h @@ -18,7 +18,9 @@ enum class Errno : u32 { AGAIN = 11, INVAL = 22, MFILE = 24, + PIPE = 32, MSGSIZE = 90, + CONNABORTED = 103, CONNRESET = 104, NOTCONN = 107, TIMEDOUT = 110, diff --git a/src/core/hle/service/sockets/sockets_translate.cpp b/src/core/hle/service/sockets/sockets_translate.cpp index c1187209f..aed05250c 100644 --- a/src/core/hle/service/sockets/sockets_translate.cpp +++ b/src/core/hle/service/sockets/sockets_translate.cpp @@ -23,10 +23,14 @@ Errno Translate(Network::Errno value) { return Errno::INVAL; case Network::Errno::MFILE: return Errno::MFILE; + case Network::Errno::PIPE: + return Errno::PIPE; case Network::Errno::NOTCONN: return Errno::NOTCONN; case Network::Errno::TIMEDOUT: return Errno::TIMEDOUT; + case Network::Errno::CONNABORTED: + return Errno::CONNABORTED; case Network::Errno::CONNRESET: return Errno::CONNRESET; case Network::Errno::INPROGRESS: |