[GSoC 2024] Fixing IPC in WebKit | Haiku Project

Actually, I was investigating whether we can use specifiers, that little used scripting feature. So we might be able to use a fancy existing feature of messaging :slight_smile:

But if that doesn’t work out, option 3 would look like

  1. Give me a connection – we create a new port
  2. Thanks! I’ll send that off to the other process. – it sends the port number to the other process
  3. Ok, now create the BLooper and BHandler to receive those messages – we create a new BLooper that reads messages sent to that port.

This would require us to do two or so things:

  1. Make a private BLooper method public.
    We need BLooper(int32 priority, port_id port, const char* name);, which creates a BLooper that reads from an existing port.
  2. Make a way to create a BMessenger that points directly to a port.
1 Like