feat: support per-interface LOCATION and update to v0.2.4 #8

Merged
eric merged 1 commit from push-xwkuwnwwzsvs into main 2026-11-14 05:21:01 +01:00
Owner

Update pmossdp to version 0.2.4, enabling server notifications to be sent on every active IPv4 interface with a LOCATION specific to that interface's address. This involves significant refactoring of the server logic to iterate over interfaces and updating documentation and tests to reflect the new multicast behavior.

  • Update package version in Cargo.toml and .crate-kit/VERSION from 0.1.15/0.2.3 to 0.1.17/0.2.4
  • Modify api-level.sh and api-snapshot.sh to use cargo public-api -s for excluding generic implementations
  • Add fixed_location field and with_fixed_location method to SsdpDevice in src/device.rs
  • Implement location_for helper in src/device.rs to determine location based on fixed status or IPv4 host
  • Refactor src/server.rs: add diffuser to send notifications across multiple interfaces, update send_alive and repondre to use per-interface locations
  • Add interfaces_ipv4 utility in src/util.rs to retrieve active non-loopback IPv4 addresses
  • Update rejoindre_groupe in src/util.rs to join multicast groups on all available IPv4 interfaces
  • Rewrite documentation in src/lib.rs and README.md to describe per-interface server behavior and client interface selection
  • Add new tests in tests/multicast.rs: interfaces, appareil_sur_une_adresse, hote, les_annonces_portent_l_adresse_de_l_interface_d_emission, and la_reponse_a_un_msearch_porte_l_adresse_qui_joint_le_demandeur
  • Move api/0.2.3.txt to api/0.2.4.txt, removing extensive trait implementations (Into, TryFrom, CloneToUninit, Any, Borrow) for SsdpEvent, SsdpClient, and SsdpDevice
  • Add new API snapshot file api/0.2.4.json.gz
Update pmossdp to version 0.2.4, enabling server notifications to be sent on every active IPv4 interface with a `LOCATION` specific to that interface's address. This involves significant refactoring of the server logic to iterate over interfaces and updating documentation and tests to reflect the new multicast behavior. - Update package version in Cargo.toml and .crate-kit/VERSION from 0.1.15/0.2.3 to 0.1.17/0.2.4 - Modify api-level.sh and api-snapshot.sh to use `cargo public-api -s` for excluding generic implementations - Add `fixed_location` field and `with_fixed_location` method to `SsdpDevice` in src/device.rs - Implement `location_for` helper in src/device.rs to determine location based on fixed status or IPv4 host - Refactor src/server.rs: add `diffuser` to send notifications across multiple interfaces, update `send_alive` and `repondre` to use per-interface locations - Add `interfaces_ipv4` utility in src/util.rs to retrieve active non-loopback IPv4 addresses - Update `rejoindre_groupe` in src/util.rs to join multicast groups on all available IPv4 interfaces - Rewrite documentation in src/lib.rs and README.md to describe per-interface server behavior and client interface selection - Add new tests in tests/multicast.rs: `interfaces`, `appareil_sur_une_adresse`, `hote`, `les_annonces_portent_l_adresse_de_l_interface_d_emission`, and `la_reponse_a_un_msearch_porte_l_adresse_qui_joint_le_demandeur` - Move api/0.2.3.txt to api/0.2.4.txt, removing extensive trait implementations (Into, TryFrom, CloneToUninit, Any, Borrow) for SsdpEvent, SsdpClient, and SsdpDevice - Add new API snapshot file api/0.2.4.json.gz
feat: support per-interface LOCATION and update to v0.2.4
All checks were successful
Release / release (push) Successful in 1m36s
2ec5a3caaa
Update pmossdp to version 0.2.4, enabling server notifications to be sent on every active IPv4 interface with a `LOCATION` specific to that interface's address. This involves significant refactoring of the server logic to iterate over interfaces and updating documentation and tests to reflect the new multicast behavior.

- Update package version in Cargo.toml and .crate-kit/VERSION from 0.1.15/0.2.3 to 0.1.17/0.2.4
- Modify api-level.sh and api-snapshot.sh to use `cargo public-api -s` for excluding generic implementations
- Add `fixed_location` field and `with_fixed_location` method to `SsdpDevice` in src/device.rs
- Implement `location_for` helper in src/device.rs to determine location based on fixed status or IPv4 host
- Refactor src/server.rs: add `diffuser` to send notifications across multiple interfaces, update `send_alive` and `repondre` to use per-interface locations
- Add `interfaces_ipv4` utility in src/util.rs to retrieve active non-loopback IPv4 addresses
- Update `rejoindre_groupe` in src/util.rs to join multicast groups on all available IPv4 interfaces
- Rewrite documentation in src/lib.rs and README.md to describe per-interface server behavior and client interface selection
- Add new tests in tests/multicast.rs: `interfaces`, `appareil_sur_une_adresse`, `hote`, `les_annonces_portent_l_adresse_de_l_interface_d_emission`, and `la_reponse_a_un_msearch_porte_l_adresse_qui_joint_le_demandeur`
- Move api/0.2.3.txt to api/0.2.4.txt, removing extensive trait implementations (Into, TryFrom, CloneToUninit, Any, Borrow) for SsdpEvent, SsdpClient, and SsdpDevice
- Add new API snapshot file api/0.2.4.json.gz
eric merged commit 8b59cb1e4c into main 2026-11-14 05:21:01 +01:00
eric deleted branch push-xwkuwnwwzsvs 2026-11-14 05:21:05 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pmo/pmossdp!8
No description provided.