/home/barant/Development/BMA/server_core/ServerCore/BMATCPServerSocket.h
#ifndef BMATCPServerSocket_h__
#define BMATCPServerSocket_h__
#include "BMASocket.h"
#include "BMATCPSocket.h"
#include "BMACommand.h"
class BMATCPServerSocket : public BMATCPSocket,
public BMACommand {
public:
BMATCPServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName);
~BMATCPServerSocket();
void removeFromSessionList(BMASession *session);
std::vector<BMASession *> sessions;
protected:
virtual void init();
virtual BMASession * getSocketAccept() = 0;
void onDataReceived(std::string data) override;
void processCommand(std::string command, BMASession *session) override;
private:
BMASession * accept();
};
#endif
BMATCPServerSocket::~BMATCPServerSocket
~BMATCPServerSocket()
Definition: BMATCPServerSocket.cpp:32
BMATCPSocket
Definition: BMATCPSocket.h:18
BMATCPServerSocket
Definition: BMATCPServerSocket.h:20
BMATCPServerSocket::processCommand
void processCommand(std::string command, BMASession *session) override
Definition: BMATCPServerSocket.cpp:57
BMATCPServerSocket::getSocketAccept
virtual BMASession * getSocketAccept()=0
BMATCPServerSocket::BMATCPServerSocket
BMATCPServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName)
Definition: BMATCPServerSocket.cpp:6
BMATCPServerSocket::onDataReceived
void onDataReceived(std::string data) override
Definition: BMATCPServerSocket.cpp:38
BMAEPoll
Definition: BMAEPoll.h:29
BMACommand
Definition: BMACommand.h:8
BMATCPServerSocket::sessions
std::vector< BMASession * > sessions
Definition: BMATCPServerSocket.h:48
BMASession
Definition: BMASession.h:18