Crate msg_transmitter

Source
Expand description

§msg-transmitter

§Overview

It is a library of single server multiple clients model. The main purpose of this library is helping users more focus on communication logic instead of low-level networking design. User can transmit any structs between server and client.

User is able to choose either tcp-based or uds-based connection. Note that tcp-based connection can support both Windows and *nux, but uds-based connection only can support *nux.

§dependances

  • Main networking architecture impletmented by asynchronous framework tokio and futures.

  • User data are transfered to bytes by serialization framework serde and binary encoder/decoder crate bincode.

§example

Examples can be found here.

§Design

Design can be found here

This crate is created by ChijinZ(tlock.chijin@gmail.com).

Modules§

tcp
uds

Functions§

create_tcp_client
create_tcp_server
create_uds_client
create_uds_server
four_vecu8_to_number
number_to_four_vecu8