Go to file
finga 4e5bfa27fe
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
cargo: Fix cargo metadata
Fix repository, homepage and add documentation url.
2023-12-08 02:11:40 +01:00
.cargo cargo: Add some cargo configuration 2023-12-08 02:01:13 +01:00
src sysvmq: Implement `send` and `recv` and refactor 2023-12-08 01:50:02 +01:00
tests sysvmq: Implement `send` and `recv` and refactor 2023-12-08 01:50:02 +01:00
.gitignore Implement creation of SysV IPC message queues 2021-07-07 20:31:16 +02:00
.woodpecker.yml ci: Add Woodpecker CI config 2023-12-08 01:43:42 +01:00
CHANGELOG.md sysvmq: Implement `send` and `recv` and refactor 2023-12-08 01:50:02 +01:00
Cargo.toml cargo: Fix cargo metadata 2023-12-08 02:11:40 +01:00
README.md readme: Add an example to the readme 2023-12-08 01:50:04 +01:00

README.md

status-badge

Sysvmq

This library provides a convenient and easy usable API for SysV IPC message queues.

use sysvmq::{SysvMq, SysvMqError};

fn example() -> Result<(), SysvMqError> {
    let mut mq = SysvMq::new(0)?;
    let mut buf = [0u8; 11];

    mq.send(b"hello queue")?;
    mq.recv(&mut buf)?;
    mq.delete()?;

    Ok(())
}