Commit graph

17 commits

Author SHA1 Message Date
finga 9666e0788d Implement info command for SysV IPC mqs
The `list` command was refactored a little bit as well and the man
page and readme were updated.
2021-07-09 00:29:13 +02:00
finga 4c82d41f8e Implement printing a list of SysV IPC mqs
What could be improved is when printing the information to use a
better human readable format.

As usual the readme and the man page are both updated.
2021-07-08 14:46:10 +02:00
finga cc19087195 Implement deletion of SysV IPC message queues
As usual also the readme and the man page are updated.
2021-07-07 20:48:07 +02:00
finga 4d200bb5f3 Implement creation of SysV IPC message queues
This adds the `sysvmq` package which handles SysV IPC message queues.
For consistency the parameter for `permissions` is renamed to `mode`
also for POSIX message queues.
2021-07-07 20:31:16 +02:00
finga 9aae14feae Refactor commands to support different backends
Therefore also the `sysv` backend is intoduced to prepare for future
support. The man page and the readme are updated so far.
2021-07-07 19:19:19 +02:00
finga 4020f062ef Add new subcommand list
Also add it to the readme and manpage.
2021-07-07 18:27:41 +02:00
finga 12b117db7e Refactor logging
To supporte more than a single log level `log` and `env_logger` crates
are used. For the application to support the different type of
argument, the verbose argument definition was adapted.
2021-07-07 17:13:08 +02:00
finga c2ad74ff15 Remove pub declarations and move to posix::*
This is in order to prepare also for SysV message queues.
2021-06-30 22:46:33 +02:00
finga 83e4ff36e5 Use the humantime crate to parse Duration 2021-06-27 02:47:27 +02:00
finga bcefd6241b Move clap options and types into main 2021-06-20 18:16:21 +02:00
finga 1100ba1b13 Support timeout and deadline parameters for send
Add support for timeout and deadline parameters when messages are sent
to a message queue. To keep code duplication small, the `utils.rs`
file contains a helper function to parse the `Duration` from the
`String` received from the timeout parameter. Add conflict rules for
the timeout and deadline parameters.
2021-06-20 16:49:40 +02:00
finga 3572b12a1a Receive message(s) from a queue
This subcommand receives one or more messages from a queue. Three
different methods are supported, read message by message, read until a
given timout or read until a specified date and time. This subcommand
also supports the `--non-blocking` flag.
2021-06-20 16:35:18 +02:00
finga 36d9e8c02c Send a message to a queue 2021-06-14 23:01:24 +02:00
finga 33f0bf8312 Print infos about a message queue 2021-06-14 23:01:24 +02:00
finga fe877b230c Remove a message queue 2021-06-14 23:01:24 +02:00
finga fdacba1eec Create a message queue
The create command creates a new message queue with support of the
typical parameters `mode`, `capacity` and `msgsize`. This command also
supports the global argument `verbose`.
2021-06-14 23:01:14 +02:00
finga 2b96bcc562 Initial commit
To implement commands `clap` is used to parse arguments.
2021-06-14 03:05:23 +02:00