Base class for IP-based server transports. Provides IP-related functionality. More...
#include <IpServerTransport.hpp>
Inherited by RCF::TcpServerTransport, and RCF::UdpServerTransport.
Public Member Functions | |
void | setAllowIps (const std::vector< IpRule > &allowIps) |
Sets IP rules to allow connections from certain IP ranges. More... | |
void | setDenyIps (const std::vector< IpRule > &denyIps) |
Sets IP rules to deny connections from certain IP ranges. More... | |
std::vector< IpRule > | getAllowIps () const |
Returns the IP rules set for allowing connections. More... | |
std::vector< IpRule > | getDenyIps () const |
Returns the IP rules set for denying connections. More... | |
virtual int | getPort () const =0 |
Returns the port number the IP-based server transport is listening on. More... | |
Base class for IP-based server transports. Provides IP-related functionality.
void RCF::IpServerTransport::setAllowIps | ( | const std::vector< IpRule > & | allowIps | ) |
Sets IP rules to allow connections from certain IP ranges.
void RCF::IpServerTransport::setDenyIps | ( | const std::vector< IpRule > & | denyIps | ) |
Sets IP rules to deny connections from certain IP ranges.
std::vector<IpRule> RCF::IpServerTransport::getAllowIps | ( | ) | const |
Returns the IP rules set for allowing connections.
std::vector<IpRule> RCF::IpServerTransport::getDenyIps | ( | ) | const |
Returns the IP rules set for denying connections.
|
pure virtual |
Returns the port number the IP-based server transport is listening on.