mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
Userland: Update IPC calls to use proxies
This updates all existing code to use the auto-generated client methods instead of post_message/send_sync.
This commit is contained in:
parent
78803ce384
commit
5bb79ea0a7
63 changed files with 303 additions and 316 deletions
|
@ -11,13 +11,16 @@
|
|||
namespace IPC {
|
||||
|
||||
template<typename ClientEndpoint, typename ServerEndpoint>
|
||||
class ServerConnection : public IPC::Connection<ClientEndpoint, ServerEndpoint>, public ClientEndpoint::Stub {
|
||||
class ServerConnection : public IPC::Connection<ClientEndpoint, ServerEndpoint>
|
||||
, public ClientEndpoint::Stub
|
||||
, public ServerEndpoint::template Proxy<ClientEndpoint> {
|
||||
public:
|
||||
using ClientStub = typename ClientEndpoint::Stub;
|
||||
using ServerProxy = typename ServerEndpoint::Proxy;
|
||||
using IPCProxy = ServerEndpoint::template Proxy<ClientEndpoint>;
|
||||
|
||||
ServerConnection(ClientStub& local_endpoint, const StringView& address)
|
||||
: Connection<ClientEndpoint, ServerEndpoint>(local_endpoint, Core::LocalSocket::construct())
|
||||
, ServerEndpoint::template Proxy<ClientEndpoint>(*this, {})
|
||||
{
|
||||
// We want to rate-limit our clients
|
||||
this->socket().set_blocking(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue