/home/barant/Development/BMA/server_core/ServerCore/BMAConsoleServer.h
#ifndef BMAConsoleServer_h__
#define BMAConsoleServer_h__
#include "includes"
#include "BMATCPServerSocket.h"
#include "BMACommand.h"
class BMATCPSocket;
class BMAConsoleServer : public BMATCPServerSocket {
public:
BMAConsoleServer(BMAEPoll &ePoll, std::string url, short int port);
~BMAConsoleServer();
void sendToConnectedConsoles(std::string out);
BMASession * getSocketAccept() override;
void registerCommand(BMACommand &command);
void output(BMASession *session) override;
std::vector<BMACommand *> commands;
};
#endif
BMATCPSocket
Definition: BMATCPSocket.h:18
BMATCPServerSocket
Definition: BMATCPServerSocket.h:20
BMAEPoll
Definition: BMAEPoll.h:29
BMACommand
Definition: BMACommand.h:8
BMAConsoleServer
Definition: BMAConsoleServer.h:9
BMAConsoleServer::getSocketAccept
BMASession * getSocketAccept() override
Definition: BMAConsoleServer.cpp:21
BMAConsoleServer::output
void output(BMASession *session) override
Output the consoles array to the console.
Definition: BMAConsoleServer.cpp:29
BMASession
Definition: BMASession.h:18