aboutsummaryrefslogtreecommitdiff
path: root/src/core/internal_network/network.h
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-07-01 17:28:43 -0700
committerLiam <byteslice@airmail.cc>2023-08-15 20:59:57 -0400
commit755bcc459bb9a5c7d521ea9046a8ac58c5256e73 (patch)
tree63a837fd55b77a8bb3c0b766c31a0d8ab0642d67 /src/core/internal_network/network.h
parenta8c4f01f6ca040672e85faaf42a8ef12d373dd65 (diff)
Improve behavior when sending to closed connection
- On Unix, this would previously kill the Yuzu process with SIGPIPE. Send MSG_NOSIGNAL to opt out of this. - Add support for the proper error code in this situation, EPIPE. - Windows has nonstandard behavior in this situation; translate it to the standard behavior. Kind of pointless, but isn't it nice to be correct?
Diffstat (limited to 'src/core/internal_network/network.h')
-rw-r--r--src/core/internal_network/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/internal_network/network.h b/src/core/internal_network/network.h
index badcb8369..c7e20ae34 100644
--- a/src/core/internal_network/network.h
+++ b/src/core/internal_network/network.h
@@ -33,10 +33,12 @@ enum class Errno {
BADF,
INVAL,
MFILE,
+ PIPE,
NOTCONN,
AGAIN,
CONNREFUSED,
CONNRESET,
+ CONNABORTED,
HOSTUNREACH,
NETDOWN,
NETUNREACH,