lstngrp

Check-in Differences
Login

Check-in Differences

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Difference From lstngrp-0.0.1 To lstngrp-0.0.2

2024-09-10
03:22
Begin pedantic clippy work. check-in: 62b3c6f91b user: jan tags: trunk
2024-08-20
17:32
Release maintenance. check-in: d6addc5963 user: jan tags: lstngrp-0.0.2, trunk
17:26
Fix Windows build. check-in: e1fe5a161f user: jan tags: trunk
2024-08-06
15:52
Rename changelist.md to changelog.md. check-in: 4daa3e2d4d user: jan tags: trunk
15:45
Doc fix. check-in: e1ae0384e3 user: jan tags: lstngrp-0.0.1, trunk
15:38
Documentation updates. check-in: 66a78ddc67 user: jan tags: trunk

Changes to .efiles.

1
2
3
4
5
6
7
8
9
Cargo.toml
README.md
www/index.md
www/changelist.md
src/lib.rs
src/listener.rs
src/conn.rs
examples/simple.rs
examples/per_listener_ctx.rs



|





1
2
3
4
5
6
7
8
9
Cargo.toml
README.md
www/index.md
www/changelog.md
src/lib.rs
src/listener.rs
src/conn.rs
examples/simple.rs
examples/per_listener_ctx.rs

Changes to Cargo.toml.

1
2
3
4
5
6
7
8
9
10
[package]
name = "lstngrp"
version = "0.0.1"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "network-programming", "asynchronous" ]
keywords = [ "network", "server", "listen", "protwrap" ]
repository = "https://repos.qrnch.tech/pub/lstngrp"
description = "Groups listeners and connections with common data/logic."


|







1
2
3
4
5
6
7
8
9
10
[package]
name = "lstngrp"
version = "0.0.2"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "network-programming", "asynchronous" ]
keywords = [ "network", "server", "listen", "protwrap" ]
repository = "https://repos.qrnch.tech/pub/lstngrp"
description = "Groups listeners and connections with common data/logic."
30
31
32
33
34
35
36
37
38
39
40
  "tls", "tokio"
] }
tokio = { version = "1.39.2", features = [
  "macros", "net", "rt", "sync"
] }

[dev-dependencies]
tokio = { version = "1.38.0", features = [
  "io-util", "rt-multi-thread", "time"
] }








|



30
31
32
33
34
35
36
37
38
39
40
  "tls", "tokio"
] }
tokio = { version = "1.39.2", features = [
  "macros", "net", "rt", "sync"
] }

[dev-dependencies]
tokio = { version = "1.39.2", features = [
  "io-util", "rt-multi-thread", "time"
] }

Changes to src/listener.rs.

72
73
74
75
76
77
78

79
80
81
82
83
84
85
  LI: Hash + Eq + Send + Sync + Clone + 'static,
  CC: ConnHandler + Send + Sync + 'static
{
  /// protwrap Acceptor callback for when a bound was successful
  async fn bound(&mut self, listener: &Listener, sa: SockAddr) {
    let addr = match &sa {
      SockAddr::Std(std) => Some(std.to_string()),

      SockAddr::TokioUnix(_) => None
    };

    // Forward bound() to the listen group application callback Handler
    self.lhandler.bound(listener, self.lid.clone(), sa).await;

    // The JoinHandle is expected to exist.







>







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
  LI: Hash + Eq + Send + Sync + Clone + 'static,
  CC: ConnHandler + Send + Sync + 'static
{
  /// protwrap Acceptor callback for when a bound was successful
  async fn bound(&mut self, listener: &Listener, sa: SockAddr) {
    let addr = match &sa {
      SockAddr::Std(std) => Some(std.to_string()),
      #[cfg(unix)]
      SockAddr::TokioUnix(_) => None
    };

    // Forward bound() to the listen group application callback Handler
    self.lhandler.bound(listener, self.lid.clone(), sa).await;

    // The JoinHandle is expected to exist.

Deleted www/changelist.md.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Change Log

## [Unreleased]

[Details](/vdiff?from=lstngrp-0.0.1&to=trunk)

### Added

### Changed

### Removed

---

## [0.0.1] - 2024-08-06

Initial release.

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<




































Added www/changelog.md.

























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Change Log

## [Unreleased]

[Details](/vdiff?from=lstngrp-0.0.2&to=trunk)

### Added

### Changed

### Removed

---

## [0.0.2] - 2024-08-20

[Details](/vdiff?from=lstngrp-0.0.1&to=lstngrp-0.0.2)

### Changed

- Windows build fix: Put unixy-specific varaiant behind `cfg(unix)` gate.

---

## [0.0.1] - 2024-08-06

Initial release.