5 #ifndef BITCOIN_IPC_PROTOCOL_H 6 #define BITCOIN_IPC_PROTOCOL_H 26 virtual std::unique_ptr<interfaces::Init>
connect(
int fd,
const char* exe_name) = 0;
35 virtual void addCleanup(std::type_index type,
void* iface, std::function<
void()> cleanup) = 0;
39 #endif // BITCOIN_IPC_PROTOCOL_H virtual void serve(int fd, const char *exe_name, interfaces::Init &init)=0
Handle requests on provided socket descriptor, forwarding them to the provided Init interface...
virtual ~Protocol()=default
virtual std::unique_ptr< interfaces::Init > connect(int fd, const char *exe_name)=0
Return Init interface that forwards requests over given socket descriptor.
virtual void addCleanup(std::type_index type, void *iface, std::function< void()> cleanup)=0
Add cleanup callback to interface that will run when the interface is deleted.
IPC protocol interface for calling IPC methods over sockets.
Initial interface created when a process is first started, and used to give and get access to other i...