21 #ifndef INCLUDE_RCF_IPSERVERTRANSPORT_HPP 22 #define INCLUDE_RCF_IPSERVERTRANSPORT_HPP 26 #include <RCF/Export.hpp> 27 #include <RCF/IpAddress.hpp> 28 #include <RCF/ThreadLibrary.hpp> 34 typedef std::pair<IpAddress, std::size_t>
IpRule;
43 bool isIpAllowed(
const IpAddress &ip)
const;
47 const std::vector<IpRule> &allowIps);
51 const std::vector<IpRule> &denyIps);
62 virtual int getPort()
const = 0;
66 mutable ReadWriteMutex mReadWriteMutex;
67 std::vector<IpRule> mAllowedIps;
68 std::vector<IpRule> mDisallowedIps;
73 #endif // ! INCLUDE_RCF_IPSERVERTRANSPORT_HPP Base class for IP-based server transports. Provides IP-related functionality.
Definition: IpServerTransport.hpp:37
Definition: AmiIoHandler.hpp:24
std::pair< IpAddress, std::size_t > IpRule
Definition: IpServerTransport.hpp:34
Represents an IP address (IPv4 or IPv6).
Definition: IpAddress.hpp:67