/home/barant/Development/BMA/server_core/ServerCore/BMAUDPServerSocket.h
#ifndef BMAUDPServerSocket_h__
#define BMAUDPServerSocket_h__
#include "BMASocket.h"
#include "BMAUDPSocket.h"
#include "BMACommand.h"
class BMAUDPServerSocket : public BMAUDPSocket,
public BMACommand {
public:
BMAUDPServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName);
~BMAUDPServerSocket();
protected:
//---------------------------------------------------------------
// Override the virtual dataReceived since for the server these
// are requests to accept the new connection socket.
//---------------------------------------------------------------
void onDataReceived(std::string data) override;
void processCommand(BMASession *session);
//------------------------------------------------------------------------------------
// The retrieved socket connections are placed into the client vector list.
//------------------------------------------------------------------------------------
std::vector<BMASession *> sessions;
private:
};
#endif
BMAUDPServerSocket
Definition: BMAUDPServerSocket.h:15
BMAUDPSocket
Definition: BMAUDPSocket.h:7
BMAEPoll
Definition: BMAEPoll.h:29
BMACommand
Definition: BMACommand.h:8
BMAUDPServerSocket::onDataReceived
void onDataReceived(std::string data) override
Called when data is received from the socket.
Definition: BMAUDPServerSocket.cpp:33
BMASession
Definition: BMASession.h:18