rust_tcp_ipc

Crates.iorust_tcp_ipc
lib.rsrust_tcp_ipc
version0.3.1
sourcesrc
created_at2018-11-08 20:46:19.726185
updated_at2018-12-22 08:51:50.000241
descriptionSimple to use crate for Interprocess Communication via TCP.
homepagehttps://github.com/voelklmichael/rust_tcp_ipc
repositoryhttps://github.com/voelklmichael/rust_tcp_ipc
max_upload_size
id95562
size52,909
(voelklmichael)

documentation

https://docs.rs/rust_tcp_ipc

README

Documentation

rust_tcp_ipc

This is a crate for Interprocess Communication via TCP.

It allows for easy, asynchronous sending and receiving messages/commands.

A flexible protocol is used, consisting of a command, a length and a payload.

In detail, it is expected that the used TCP protocol works via exchange of byte collections. A fixed header length is assumed, so - for example - the first 5 bytes of each message encode the message header. The header in turn consists of a command (like Stop, Start, Pause, Load, ...) and a length part. Command & length can be in arbitrary order (but have to be fixed for the protocol). Then the next length-many bytes which are received are the payload of the message. Further received bytes form the next message.

An example is given in the Examples.

To work on this crate was motivated by a Talk given at the Regensburg Haskell Meetup in November 2018.

Commit count: 27

cargo fmt