20 #ifndef INCLUDE_RCF_IPSERVERTRANSPORT_HPP 21 #define INCLUDE_RCF_IPSERVERTRANSPORT_HPP 25 #include <RCF/Export.hpp> 26 #include <RCF/IpAddress.hpp> 27 #include <RCF/ThreadLibrary.hpp> 33 typedef std::pair<IpAddress, std::size_t>
IpRule;
42 bool isIpAllowed(
const IpAddress &ip)
const;
46 const std::vector<IpRule> &allowIps);
50 const std::vector<IpRule> &denyIps);
61 virtual int getPort()
const = 0;
65 mutable ReadWriteMutex mReadWriteMutex;
66 std::vector<IpRule> mAllowedIps;
67 std::vector<IpRule> mDisallowedIps;
72 #endif // ! INCLUDE_RCF_IPSERVERTRANSPORT_HPP Base class for IP-based server transports. Provides IP-related functionality.
Definition: IpServerTransport.hpp:36
Definition: AmiIoHandler.hpp:23
std::pair< IpAddress, std::size_t > IpRule
Definition: IpServerTransport.hpp:33
Represents an IP address (IPv4 or IPv6).
Definition: IpAddress.hpp:66