From b310f712828962bf3187caf3bfe064c3531c5628 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 16 Jul 2018 17:10:47 -0700 Subject: fixes #595 mutex leak and other minor errors in TCP fixes #596 POSIX IPC should move away from pipedesc/epdesc fixes #598 TLS and TCP listeners could support NNG_OPT_LOCADDR fixes #594 Windows IPC should use "new style" win_io code. fixes #597 macOS could support PEER PID This large change set cleans up the IPC support on Windows and POSIX. This has the beneficial impact of significantly reducing the complexity of the code, reducing locking, increasing concurrency (multiple dial and accepts can be outstanding now), reducing context switches (we complete thins synchronously now). While here we have added some missing option support, and fixed a few more bugs that we found in the TCP code changes from last week. --- src/CMakeLists.txt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11c7d82e..ed96b6bc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -87,19 +87,20 @@ set (NNG_SOURCES if (NNG_PLATFORM_POSIX) set (NNG_SOURCES ${NNG_SOURCES} platform/posix/posix_impl.h + platform/posix/posix_ipc.h platform/posix/posix_config.h - platform/posix/posix_aio.h platform/posix/posix_pollq.h + platform/posix/posix_tcp.h platform/posix/posix_alloc.c platform/posix/posix_atomic.c platform/posix/posix_clock.c platform/posix/posix_debug.c - platform/posix/posix_epdesc.c platform/posix/posix_file.c - platform/posix/posix_ipc.c + platform/posix/posix_ipcconn.c + platform/posix/posix_ipcdial.c + platform/posix/posix_ipclisten.c platform/posix/posix_pipe.c - platform/posix/posix_pipedesc.c platform/posix/posix_rand.c platform/posix/posix_resolv_gai.c platform/posix/posix_sockaddr.c @@ -132,12 +133,17 @@ endif() if (NNG_PLATFORM_WINDOWS) set (NNG_SOURCES ${NNG_SOURCES} platform/windows/win_impl.h + platform/windows/win_ipc.h + platform/windows/win_tcp.h + platform/windows/win_clock.c platform/windows/win_debug.c platform/windows/win_file.c platform/windows/win_io.c platform/windows/win_iocp.c - platform/windows/win_ipc.c + platform/windows/win_ipcconn.c + platform/windows/win_ipcdial.c + platform/windows/win_ipclisten.c platform/windows/win_pipe.c platform/windows/win_rand.c platform/windows/win_resolv.c -- cgit v1.2.3-70-g09d2