Commit 4e7a64b
[MSAFD][AFD] Asynchronous connection support (reactos#8573)
* [MSAFD] async support
- Allow APCs to be processed while waiting for blocking IO
- Remove SleepEx hacks
[MSAFD][AFD][TCPIP] Patch CORE-12152
Original author: Peter Hater <7element@mail.bg>
TCPConnect: Always copy bind address into connection.
[MSAFD] SetSocketInformation: Remove unnecessary TRACE code blocks
[MSAFD] AfdRecvAPC and AfdSendAPC: Remove unnecessary NULL checks
[MSAFD] WSPRecv, WSPRecvFrom and WSPSend: Fix leaks and fix IOCTL input buffer handling
[MSAFD] Rewrite WSPSendTo
[MSAFD] Rewrite WSPConnect and AfdConnectAPC
[MSAFD] Remove hacky SleepEx calls
[MSAFD] Don't wait with no timeout
[MSAFD] send/receive: Fixes for overlapped socket
- Fix IOCTL buffers handling
- Allow APC to be processed
[MSAFD] connect: Fixes for async connect
- Allow APC to be processed
- Remove "mark as connected" hack for non-blocking socket
[MSAFD] Get/SetSocketInformation: Fixes for overlapped socket
- Fix IOCTL buffer handling
- Allow APC to be processed
[MSAFD] APC fixes
Fix New Moon 28 crash on website ads.
[MSAFD] Code cleanup
- Rename APC context data type
- Rename APC functions (Afd* -> Msafd*)
- Add SAL annotation
- BUGBUG -> FIXME
- Use sizeof(*ptr) instead of sizeof(type)
- Fix debug prints
[MSAFD] Add comment for SleepEx hacks
[MSAFD] WSPGetOverlappedResult: Fix failed ws2_32:recv tests
[MSAFD] WSPConnect: Fix IOCTL status handling
[MSAFD] send/receive: Simplify IOCTL status handling
[MSAFD] Get/SetSocketInformation: Simplify IOCTL status handling
Co-Authored-By: Emmanuel Gonzalez <momo16136@tamu.edu>
Co-Authored-By: Julio Carchi Ruiz <juliocarchi@yahoo.com>
* [MSAFD] Fixes
- pass overlapped structure pointer to apc context when there no completion routine. .NET expects this behavior
- Fix WSPGetOverlappedResult to return flags and status code upon failure
---------
Original author: Peter Hater <7element@mail.bg>
Co-authored-by: Thamatip Chitpong <thamatip.chitpong@reactos.org>
Co-authored-by: Emmanuel Gonzalez <momo16136@tamu.edu>
Co-authored-by: Julio Carchi Ruiz <juliocarchi@yahoo.com>1 parent fda2ee2 commit 4e7a64b
0 commit comments