Skip to content

Commit d7d1fd0

Browse files
authored
Simpler adapters (lemunozm#28)
* Added driver module * Implemented ResourceRegister * Added tcp based in new pattern * Added udp based in new pattern * Test passing * From FnMut to Fn where is not necessary the mutability * Updated readme * Updated API docs. Minnor changes * Simplified EventHandler. Update docs. * Renamed SendingStatus to SendStatus * Removed unused local_addr * Renamed from Added/removedEndpoint to Connected/Disconnected * cargo fmt and cargo clippy * Fixed doc links * Refactored tests * Renamed from ResoyrceRemoved to ResourceNotFound * Updated README * Added adapter skeleton example. Updated to 0.7 * Fixed adapter_template compilation. * Updated docs * Improve log * Simplified EventHandle * Splited decoded by stream. * Refactored enconding module * Added Resource trait to adapter. * Added RemoteAddr * Tests passed! * Simplified engine/driver * Moved adapte template. Fixed docs * Renamed Listener by Local
1 parent a0b4824 commit d7d1fd0

33 files changed

+1548
-1192
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
# Changelog
22

3-
## Release 0.6.1
3+
## Release 0.7.0
44
- Internal improvements in order to use one thread for all adapters.
5-
- Clean architecture to implement new adapters easier.
5+
- Clean architecture to implement new adapters easier (an internal API).
66
- Increase the UDP packet size that can be sent.
77
- Correcly managed ConectionRefused error generated by ICMP in UDP connections.
88
- Correcty notified when remove a multicast udp connection.
9+
- Fixed some cases when udp multicast was not leaving.
10+
- Fixed some memory leaks at decoding pool.
11+
- Removed unused `Network::local_addr`.
12+
- Renamed from `SendingStatus` to `SendStatus`.
13+
- Renamed from `SendingStatus::RemovedEndpoint` to `SendingStatus::ResourceNotFound`.
14+
- Renamed from `MAX_UDP_LEN` to `MAX_UDP_PAYLOAD_LEN`.
15+
- Renamed from `AddedEndpoint` to `Connected`.
16+
- Renamed from `RemovedEndpoint` to `Disconnected`.
17+
- Added `RemoteAddr` for replace `SocketAddr` in connections.
18+
- Renamed from `Listener` to `Local` in resource contexts.
19+
- Improvement speed in TCP framing.
920

1021
## Release 0.6.0
1122
- Added concurrent writing and reading from socket/streams in UDP and TCP protocols.

Cargo.lock

Lines changed: 177 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "message-io"
3-
version = "0.6.1"
3+
version = "0.7.0"
44
authors = ["lemunozm <lemunozm@gmail.com>"]
55
edition = "2018"
66
readme = "README.md"
@@ -23,6 +23,7 @@ log = "0.4"
2323
net2 = "0.2.34"
2424
num_enum = "0.5.1"
2525
strum = { version = "0.20", features = ["derive"] }
26+
url = "2.2.0"
2627

2728
#![cfg_attr(test, feature(proc_macro))]
2829
#[cfg(test)]
@@ -31,7 +32,10 @@ lazy_static = "1.4.0"
3132
[dev-dependencies]
3233
criterion = "0.3"
3334
serde-big-array = "0.3"
34-
simple_logger = "1.11.0"
35+
fern = "0.6.0"
36+
chrono = "0.4.19"
37+
test-case = "1.1.0"
38+
rand = "0.8.3"
3539

3640
[[bench]]
3741
name = "performance"

0 commit comments

Comments
 (0)