taper-0.1.0 has been yanked.
Taper
Taper is a Rust library made for easy packet based network communication.
Async
Taper supports async usage with the async feature.
When enabled, taper will use Tokio to execute concurrently all packet listener.
If disabled, OS Threads are used instead
While this may be overkill for Clients, this may be a great performance improvement for Servers.
Server Usage
use Server;
// Try to bind server for listening on localhost and port 1234
// Using u32 packets
let server = bind.unwrap;
// Wait for the connection of a single socket
let socket = server.event_receiver.recv.unwrap;
// Do whatever you want with the socket!
Client Usage
use ;
let socket = connect.unwrap;
socket.packet_sender.send.unwrap;
loop
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.