LibCore: Implement TCPServer on Windows

This commit is contained in:
ayeteadoe 2025-07-14 01:16:11 -07:00 committed by Andrew Kaster
commit cc3cabc768
Notes: github-actions[bot] 2025-08-07 02:26:27 +00:00
5 changed files with 174 additions and 6 deletions

View file

@ -1,6 +1,7 @@
/*
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
* Copyright (c) 2024-2025, stasoid <stasoid@yahoo.com>
* Copyright (c) 2025, ayeteadoe <ayeteadoe@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -166,7 +167,7 @@ static int notifier_type_to_network_event(NotificationType type)
{
switch (type) {
case NotificationType::Read:
return FD_READ | FD_CLOSE;
return FD_READ | FD_CLOSE | FD_ACCEPT;
case NotificationType::Write:
return FD_WRITE;
default: