MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
controller_limits.h
Go to the documentation of this file.
1 #pragma once
2 #include <mist/json.h>
3 #include <map>
4 #include <string>
5 
6 /*LTS-START*/
7 #ifdef GEOIP
8 #include <GeoIP.h>
9 #define GEOIPV4 "/usr/share/GeoIP/GeoIP.dat"
10 #define GEOIPV6 "/usr/share/GeoIP/GeoIPv6.dat"
11 #endif
12 /*LTS-END*/
13 
14 namespace Controller{
15  void checkStreamLimits(std::string streamName, long long currentKbps, long long connectedUsers);
16  void checkServerLimits();
17  bool isBlacklisted(std::string host, std::string streamName, int timeConnected);
18  std::string hostLookup(std::string ip);
19  bool onList(std::string ip, std::string list);
20  std::string getCountry(std::string ip);
21 }
Holds everything unique to the controller.
Definition: controller_api.h:4
std::string hostLookup(std::string ip)
Definition: controller_limits.cpp:190
void checkStreamLimits(std::string streamName, long long currentKbps, long long connectedUsers)
Definition: controller_limits.cpp:11
std::string getCountry(std::string ip)
Definition: controller_limits.cpp:376
void checkServerLimits()
Definition: controller_limits.cpp:73
bool isBlacklisted(std::string host, std::string streamName, int timeConnected)
Definition: controller_limits.cpp:208
bool onList(std::string ip, std::string list)
Definition: controller_limits.cpp:145