Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
LocationProvider.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2026. All rights reserved
3 */
4
5namespace Stroika::Frameworks::UPnP::SSDP::Server {
6
7 namespace Private_ {
8 // the address to advertise for interface i on an SSDP channel of family f: one not link-local, if it has one
9 optional<InternetAddress> AdvertisableAddress (const Foundation::IO::Network::Interface& i, InternetAddress::AddressFamily f);
10
11 // this machine's address on asker's own network - one of interfaces' addresses in a subnet of it that asker is in - or
12 // nullopt: asker further off, or link-local (in every interface's subnet), so the routing table must say
13 optional<InternetAddress> LocalAddressOnAskersNetwork (const InternetAddress& asker,
14 const Foundation::Traversal::Iterable<Foundation::IO::Network::Interface>& interfaces);
15 }
16
17}