1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:58:11 +00:00
serenity/Userland/Services/RequestServer
sin-ack 2e1bbcb0fa LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer
This change unfortunately cannot be atomically made without a single
commit changing everything.

Most of the important changes are in LibIPC/Connection.cpp,
LibIPC/ServerConnection.cpp and LibCore/LocalServer.cpp.

The notable changes are:
- IPCCompiler now generates the decode and decode_message functions such
  that they take a Core::Stream::LocalSocket instead of the socket fd.
- IPC::Decoder now uses the receive_fd method of LocalSocket instead of
  doing system calls directly on the fd.
- IPC::ConnectionBase and related classes now use the Stream API
  functions.
- IPC::ServerConnection no longer constructs the socket itself; instead,
  a convenience macro, IPC_CLIENT_CONNECTION, is used in place of
  C_OBJECT and will generate a static try_create factory function for
  the ServerConnection subclass. The subclass is now responsible for
  passing the socket constructed in this function to its
  ServerConnection base; the socket is passed as the first argument to
  the constructor (as a NonnullOwnPtr<Core::Stream::LocalServer>) before
  any other arguments.
- The functionality regarding taking over sockets from SystemServer has
  been moved to LibIPC/SystemServerTakeover.cpp. The Core::LocalSocket
  implementation of this functionality hasn't been deleted due to my
  intention of removing this class in the near future and to reduce
  noise on this (already quite noisy) PR.
2022-01-15 13:29:48 +03:30
..
ClientConnection.cpp LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ClientConnection.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
CMakeLists.txt RequestServer: Port to LibMain :^) 2021-11-23 11:33:36 +01:00
ConnectionCache.cpp RequestServer: Don't hide the SIGINFO state dump behind a debug macro 2021-10-01 20:17:15 +02:00
ConnectionCache.h RequestServer: Don't hide the SIGINFO state dump behind a debug macro 2021-10-01 20:17:15 +02:00
Forward.h Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
GeminiProtocol.cpp RequestServer+LibHTTP+LibGemini: Cache connections to the same host 2021-09-19 21:10:23 +04:30
GeminiProtocol.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
GeminiRequest.cpp LibCore+RequestServer: Ignore callbacks for cancelled network jobs 2021-09-19 21:10:23 +04:30
GeminiRequest.h RequestServer+LibHTTP+LibGemini: Cache connections to the same host 2021-09-19 21:10:23 +04:30
HttpCommon.h LibHTTP: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
HttpProtocol.cpp Services: Remove unused header includes 2021-08-01 08:10:16 +02:00
HttpProtocol.h Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
HttpRequest.cpp LibCore+RequestServer: Ignore callbacks for cancelled network jobs 2021-09-19 21:10:23 +04:30
HttpRequest.h RequestServer+LibHTTP+LibGemini: Cache connections to the same host 2021-09-19 21:10:23 +04:30
HttpsProtocol.cpp Services: Remove unused header includes 2021-08-01 08:10:16 +02:00
HttpsProtocol.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
HttpsRequest.cpp LibCore+RequestServer: Ignore callbacks for cancelled network jobs 2021-09-19 21:10:23 +04:30
HttpsRequest.h RequestServer+LibHTTP+LibGemini: Cache connections to the same host 2021-09-19 21:10:23 +04:30
main.cpp RequestServer: Tighten pledged promises 2022-01-03 15:56:41 +01:00
Protocol.cpp RequestServer: Replace Result<T, E> use with ErrorOr<T> 2021-11-08 00:35:27 +01:00
Protocol.h RequestServer: Replace Result<T, E> use with ErrorOr<T> 2021-11-08 00:35:27 +01:00
Request.cpp Services: Remove unused header includes 2021-08-01 08:10:16 +02:00
Request.h Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
RequestClient.ipc Everywhere: Use IPC include syntax 2021-07-03 12:16:00 +02:00
RequestServer.ipc RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint 2021-09-28 22:32:31 +02:00