1 unstable release
new 0.1.0 | Jan 24, 2025 |
---|
#6 in #listener
55 downloads per month
7KB
86 lines
EasyIPC
EasyIPC is a Rust library for inter-process communication (IPC) using local sockets. It provides simple functions to create listeners, send and receive messages.
Installation
cargo add easyipc
Usage
Receiving Data
let listener = easyipc::ipc_create_listener("example_uid").unwrap();
let timeout = std::time::Duration::from_secs(5);
let recv_buffer = easyipc::ipc_recv(&listener, timeout).unwrap();
Sending Data
easyipc::ipc_send("example_uid", b"Hello, world!").unwrap();
License
This project is licensed under the MIT License.
Dependencies
~2–9.5MB
~92K SLoC