aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-07-27 19:56:12 -0700
committerGarrett D'Amore <garrett@damore.org>2020-07-27 19:58:28 -0700
commit328ccfef4daefb1450660846b7e9fa1d1b3fe207 (patch)
treec0b403d556cda269ccdfcd4915578be1a94fc397
parent27f2456b3f9b432b2663208c6d2b77f71d669ec5 (diff)
downloadnng-328ccfef4daefb1450660846b7e9fa1d1b3fe207.tar.gz
nng-328ccfef4daefb1450660846b7e9fa1d1b3fe207.tar.bz2
nng-328ccfef4daefb1450660846b7e9fa1d1b3fe207.zip
fixes #1242 EADDRINUSE is not reported on Win32
-rw-r--r--src/platform/windows/win_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/windows/win_debug.c b/src/platform/windows/win_debug.c
index a37411cf..3b3c4ab7 100644
--- a/src/platform/windows/win_debug.c
+++ b/src/platform/windows/win_debug.c
@@ -1,5 +1,5 @@
//
-// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -108,6 +108,7 @@ static struct {
{ ERROR_OUT_OF_STRUCTURES, NNG_ENOMEM },
{ ERROR_INVALID_PARAMETER, NNG_EINVAL },
{ ERROR_CONNECTION_REFUSED, NNG_ECONNREFUSED },
+ { ERROR_DUP_NAME, NNG_EADDRINUSE },
{ ERROR_BROKEN_PIPE, NNG_ECLOSED },
{ ERROR_BAD_PIPE, NNG_ECLOSED },
{ ERROR_NO_DATA, NNG_ECLOSED },