https://github.com/htrefil/asnet
asnet is a simple asynchronous, packet-oriented networking library built on TCP.
https://github.com/htrefil/asnet
Last synced: over 1 year ago
JSON representation
asnet is a simple asynchronous, packet-oriented networking library built on TCP.
- Host: GitHub
- URL: https://github.com/htrefil/asnet
- Owner: htrefil
- License: mit
- Created: 2019-10-23T17:01:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T16:11:19.000Z (over 6 years ago)
- Last Synced: 2025-01-21T00:13:59.112Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asnet
asnet is a simple asynchronous, packet-oriented networking library built on TCP.
It uses the mio crate internally to create an event loop for multiplexing connections.
The API is inspired by the ENet networking library.
The library is useful for singlethreaded programs that don't want to use threading to work with networking.
## Usage
The core of the library revolves around the `Host` structure which encapsulates all peers.
A peer represents a connection to a remote server or client.
See the [examples](examples) directory for example usage.
## License
[MIT](LICENSE)