mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Userland: Add try_* IPC handlers
This enables calling auto-generated IPC methods in a way that doesn't crash the client if the peer disconnects.
This commit is contained in:
parent
34cf5cf07f
commit
8a6db55e79
4 changed files with 62 additions and 27 deletions
|
@ -37,6 +37,10 @@ struct MessageBuffer {
|
|||
Vector<RefPtr<AutoCloseFileDescriptor>> fds;
|
||||
};
|
||||
|
||||
enum class ErrorCode : u32 {
|
||||
PeerDisconnected
|
||||
};
|
||||
|
||||
class Message {
|
||||
public:
|
||||
virtual ~Message();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue