29 lines
387 B
C++
29 lines
387 B
C++
#ifndef SERVER_HPP_
|
|
#define SERVER_HPP_
|
|
|
|
#include "config_utility.hpp"
|
|
#include "network.hpp"
|
|
|
|
#include <vector>
|
|
|
|
class Server {
|
|
public:
|
|
Server();
|
|
~Server();
|
|
|
|
void Init();
|
|
void Proc();
|
|
void Quit();
|
|
|
|
void HandleInput();
|
|
void UpdateWorld();
|
|
void HandleOutput();
|
|
private:
|
|
bool running;
|
|
ConfigUtility config;
|
|
TCPServerSocket servSock;
|
|
std::vector<TCPSocket*> sockVec;
|
|
};
|
|
|
|
#endif
|