mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
38 lines
530 B
C++
38 lines
530 B
C++
#ifndef F4MPSERVER_SERVER_H_
|
|
#define F4MPSERVER_SERVER_H_
|
|
|
|
#ifdef _WINDOWS
|
|
#include <windows.h>
|
|
#include <libloaderapi.h> // Sleep64
|
|
#else
|
|
#include <arpa/inet.h>
|
|
#endif
|
|
|
|
#include <steam/isteamnetworkingsockets.h>
|
|
|
|
#include "./Logger.hpp"
|
|
|
|
|
|
class Server
|
|
{
|
|
public:
|
|
Server();
|
|
|
|
void Start(void);
|
|
|
|
unsigned ConnectionCount(void) const;
|
|
|
|
void Update(uint64_t time);
|
|
|
|
~Server();
|
|
|
|
public:
|
|
// ISteamNetworkingSockets * networkingSockets;
|
|
|
|
private:
|
|
Logger& _Logger;
|
|
|
|
bool IsBanned(const char *ip);
|
|
};
|
|
|
|
#endif
|