mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Userland: Split IPC endpoints into proxies and stubs
This enables support for automatically generating client methods. With this added the user gets code completion support for all IPC methods which are available on a connection object.
This commit is contained in:
parent
065040872f
commit
78803ce384
20 changed files with 175 additions and 53 deletions
|
@ -11,9 +11,12 @@
|
|||
namespace IPC {
|
||||
|
||||
template<typename ClientEndpoint, typename ServerEndpoint>
|
||||
class ServerConnection : public IPC::Connection<ClientEndpoint, ServerEndpoint> {
|
||||
class ServerConnection : public IPC::Connection<ClientEndpoint, ServerEndpoint>, public ClientEndpoint::Stub {
|
||||
public:
|
||||
ServerConnection(ClientEndpoint& local_endpoint, const StringView& address)
|
||||
using ClientStub = typename ClientEndpoint::Stub;
|
||||
using ServerProxy = typename ServerEndpoint::Proxy;
|
||||
|
||||
ServerConnection(ClientStub& local_endpoint, const StringView& address)
|
||||
: Connection<ClientEndpoint, ServerEndpoint>(local_endpoint, Core::LocalSocket::construct())
|
||||
{
|
||||
// We want to rate-limit our clients
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue