Crate palombe[][src]

Expand description

🕊️ Palombe cargo version

Palombe lets you send and receive messages synchronously through different processes using named pipes.

Quick example

extern create palombe;
use std::ffi::CString;

fn main() {
    let key = CString::new("foo").unwrap();
    let value = CString::new("bar").unwrap();
    let key_ = key.clone();
    let value_ = value.clone();
    std::thread::spawn(move || palombe.send(&key_, &value_));
    assert_eq!(palombe.receive(&key), value);
}

Functions

receive

Receive the value associated with a key to another thread/program launched by the same user

send

Send a value associated with a key to another thread/program launched by the same user