BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/BMAUDPServerSocket.h
1 #ifndef BMAUDPServerSocket_h__
2 #define BMAUDPServerSocket_h__
3 
4 #include "BMASocket.h"
5 #include "BMAUDPSocket.h"
6 #include "BMACommand.h"
7 
14 
16  public BMACommand {
17 
18  public:
19 
20  BMAUDPServerSocket(BMAEPoll &ePoll, std::string url, short int port, std::string commandName);
22 
23  protected:
24 
25  //---------------------------------------------------------------
26  // Override the virtual dataReceived since for the server these
27  // are requests to accept the new connection socket.
28  //---------------------------------------------------------------
29 
30  void onDataReceived(std::string data) override;
31 
32  void processCommand(BMASession *session);
33 
34  //------------------------------------------------------------------------------------
35  // The retrieved socket connections are placed into the client vector list.
36  //------------------------------------------------------------------------------------
37 
38  std::vector<BMASession *> sessions;
39 
40  private:
41 
42 
43 };
44 
45 
46 
47 #endif
Definition: BMAUDPServerSocket.h:15
Definition: BMAUDPSocket.h:7
Definition: BMAEPoll.h:29
Definition: BMACommand.h:8
void onDataReceived(std::string data) override
Called when data is received from the socket.
Definition: BMAUDPServerSocket.cpp:33
Definition: BMASession.h:18