Sockit 🧦
A high-level UDP Socket that allows for writing and reading (de)serializable values
Usage
Add this to your Cargo.toml:
[]
= "0.2.1"
You can create a Socket by binding it to an address like so:
async
You can use the Socket to send and receive serializable objects:
use UdpSocket;
use ;
/// A (de)serializable type shared between client and server
/// Code running client side
async
/// Code running server side
async