mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
The Win32 API equivalent to pipe2() is CreatePipe(), which creates read and write anonymous pipe handles that we can set to non-blocking via SetNamedPipeHandleState(); however, this initial approach caused issues as our Windows infrastructure assumes socket-based handles/fds and that we don't use Windows pipes at all, see Core::System::is_socket() in SystemWindows.cpp. So we use socketpair() to keep our current assumptions true. Given that Windows uses socketpair() and Unix uses pipe2(), this RequestPipe abstraction avoids ifdef soup by hiding the details about how the read/write fds pair is created and how response data is written to the client. |
||
|---|---|---|
| .. | ||
| ImageDecoder | ||
| RequestServer | ||
| WebContent | ||
| WebDriver | ||
| WebWorker | ||
| CMakeLists.txt | ||