21 lines
595 B
C++
21 lines
595 B
C++
#pragma once
|
|
#include <mist/json.h>
|
|
#include <map>
|
|
#include <string>
|
|
|
|
/*LTS-START*/
|
|
#ifdef GEOIP
|
|
#include <GeoIP.h>
|
|
#define GEOIPV4 "/usr/share/GeoIP/GeoIP.dat"
|
|
#define GEOIPV6 "/usr/share/GeoIP/GeoIPv6.dat"
|
|
#endif
|
|
/*LTS-END*/
|
|
|
|
namespace Controller{
|
|
void checkStreamLimits(std::string streamName, long long currentKbps, long long connectedUsers);
|
|
void checkServerLimits();
|
|
bool isBlacklisted(std::string host, std::string streamName, int timeConnected);
|
|
std::string hostLookup(std::string ip);
|
|
bool onList(std::string ip, std::string list);
|
|
std::string getCountry(std::string ip);
|
|
}
|