Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

FCG-LLC/nanomsg-tokio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tokio wrapper for Nanomsg

The purpose

While nanomsg provides dedicated non-blocking APIs (nn_poll, NN_DONTWAIT) their use is limited to nanomsg sockets only. This library implements native Tokio adapters (Stream and Sink) on top of nanomsg's raw file descriptors and thus allows for multiplexing nanomsg socket's IO with other asynchronous libraries.

Running examples

There are two example applications available: listener and sender.

cargo run --example=listener
cargo run --example=sender