Crates.io | spunet |
lib.rs | spunet |
version | 1.0.0 |
source | src |
created_at | 2024-12-05 02:12:59.968229 |
updated_at | 2024-12-05 02:12:59.968229 |
description | A very simple client/server library that just deals with merging TCP/UDP. No extra frills or compatibility-breaking features. |
homepage | |
repository | https://gitlab.com/oglo-crates/spunet |
max_upload_size | |
id | 1472797 |
size | 36,103 |
Spunet is a very easy-to-use, zero dependency, networking library where the only aim is to make TCP and UDP smooth to use.
It doesn't do anything special apart from start up TCP streams and UDP sockets
and put them in separate threads so you don't block the main thread when
reading data from the network. This library also makes it trivially easy
to send/receive messages on both TCP and UDP with only one change to a single
argument of either the send()
or recv()
functions!
This library does nothing extra with TCP and UDP, so this library is fully compatible with other programs that just use the regular TCP/UDP implementations in the standard library of whatever programming language they use. The only requirement is that the UDP socket and TCP stream of the other application or process share the same bound address with each other since the client and server of this library target the same address for both TCP and UDP.