iw4x-client/src/Components/Modules/Download.hpp

22 lines
534 B
C++
Raw Normal View History

2016-01-08 21:21:59 -05:00
namespace Components
{
class Download : public Component
{
public:
2016-01-09 09:30:13 -05:00
Download();
~Download();
const char* GetName() { return "Download"; };
private:
2016-06-04 11:06:49 -04:00
static mg_mgr Mgr;
2016-01-08 21:21:59 -05:00
2016-06-04 11:06:49 -04:00
static void EventHandler(mg_connection *nc, int ev, void *ev_data);
2016-06-04 15:24:03 -04:00
static void ListHandler(mg_connection *nc, int ev, void *ev_data);
static void FileHandler(mg_connection *nc, int ev, void *ev_data);
static bool IsClient(mg_connection *nc);
static Game::client_t* GetClient(mg_connection *nc);
static void Forbid(mg_connection *nc);
2016-01-08 21:21:59 -05:00
};
}