# BMA Server Framework: /home/barant/Development/BMA/server_core/ServerCore/TCPServerSocket.h Source File

/home/barant/Development/BMA/server_core/ServerCore/TCPServerSocket.h
#ifndef __TCPServerSocket_h__
#define __TCPServerSocket_h__
#include "Socket.h"
#include "TCPSocket.h"
#include "Service.h"
namespace core {
class TCPServerSocket : public TCPSocket, public Command {
public:
TCPServerSocket(EPoll &ePoll, Service service, IPAddress address);
~TCPServerSocket();
Service &service;
protected:
// virtual void init();
virtual Session * getSocketAccept();
void onDataReceived(std::string data) override;
int processCommand(std::string command, Session *session) override;
private:
Session * accept();
};
}
#endif
core::EPoll
Definition: EPoll.h:31
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::TCPServerSocket::onDataReceived
void onDataReceived(std::string data) override
Definition: TCPServerSocket.cpp:24
core::IPAddress
Definition: IPAddress.h:9
core::TCPServerSocket::getSocketAccept
virtual Session * getSocketAccept()
Definition: TCPServerSocket.cpp:38
core::TCPServerSocket::TCPServerSocket
TCPServerSocket(EPoll &ePoll, Service service, IPAddress address)
Definition: TCPServerSocket.cpp:8
core::Service
Definition: Service.h:20
core::TCPServerSocket::processCommand
int processCommand(std::string command, Session *session) override
Definition: TCPServerSocket.cpp:42
core::Command
Definition: Command.h:18
core::TCPSocket
Definition: TCPSocket.h:20
core::TCPServerSocket
Definition: TCPServerSocket.h:22
core::TCPServerSocket::~TCPServerSocket
~TCPServerSocket()
Definition: TCPServerSocket.cpp:20