F4MP/codigos originales/f4mp_originalcode/F4MPServer/src/Server.hpp
2026-01-06 18:53:59 +01:00

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