Easy and simple IPC for Windows and GNU/Linux!
ninjahandle ipc = ninjaipc::create_server( "ninjaipc" );
ninjaipc::listen( ipc, [ ipc ]( void* request_content ) -> void
{
std::cout << "Request received!" << std::endl;
github* content = (github*)request_content;
std::cout << content->author std::endl;
ninjaipc::acknowledge_request( ipc );
});
struct github
{
int stars{};
char author[25]{};
}
github oluan = { +1 , "oluan" };
ninjahandle ipc = ninjaipc::connect( "ninjaipc" );
ninjaipc::send_request<github>(ipc, oluan);
โจ Demo
๐ค luan devecchi
- Github: @oluan
Contributions, issues and feature requests are welcome! Feel free to check issues page.
Give a โญ๏ธ if this project helped you!
Copyright ยฉ 2020 luan devecchi. This project is Apache--2.0 License licensed.