25 #ifndef TELNETSERVER_H_
26 #define TELNETSERVER_H_
36 class IAmDatabaseHandler;
37 class CAmCommandSender;
38 class CAmRoutingSender;
39 class CAmControlSender;
40 class CAmCommandReceiver;
41 class CAmRoutingReceiver;
42 class CAmControlReceiver;
44 class CAmTelnetMenuHelper;
55 CAmTelnetServer(
CAmSocketHandler *iSocketHandler,
CAmCommandSender *iCommandSender,
CAmCommandReceiver *iCommandReceiver,
CAmRoutingSender *iRoutingSender,
CAmRoutingReceiver *iRoutingReceiver,
CAmControlSender *iControlSender,
CAmControlReceiver *iControlReceiver,
IAmDatabaseHandler *iDatabasehandler,
CAmRouter *iRouter,
unsigned int servPort,
unsigned int maxConnections);
68 typedef void (*CommandPrototype)(std::vector<std::string>& msg,
int filedescriptor);
69 typedef std::map<std::string, CommandPrototype> mMapCommand_t;
71 void sliceCommand(
const std::string&
string, std::string& command, std::queue<std::string>& msg);
72 mMapCommand_t createCommandMap();
90 std::queue<std::string> mListMessages;
91 std::vector<connection_s> mListConnections;
93 unsigned int mServerPort;
94 unsigned int mMaxConnections;
Implements the RoutingSendInterface.
This class realizes the command Interface.
bool check(const sh_pollHandle_t handle, void *userData)
make private, not public template for a callback
Implements an autorouting algorithm for connecting sinks and sources via different audio domains...
This class is used to receive all commands from the control interface.
The am::CAmSocketHandler implements a mainloop for the AudioManager.
void connectSocket(const pollfd pfd, const sh_pollHandle_t handle, void *userData)
uint16_t sh_pollHandle_t
this is a handle for a filedescriptor to be used with the SocketHandler
Implements the Receiving side of the RoutingPlugins.
void disconnectClient(int filedescriptor)
sends data to the commandInterface, takes the file of the library that needs to be loaded ...
This class handles and abstracts the database.
Implements a telnetserver that can be used to connect to the audiomanager, retrieve some information ...
CAmTelnetServer(CAmSocketHandler *iSocketHandler, CAmCommandSender *iCommandSender, CAmCommandReceiver *iCommandReceiver, CAmRoutingSender *iRoutingSender, CAmRoutingReceiver *iRoutingReceiver, CAmControlSender *iControlSender, CAmControlReceiver *iControlReceiver, IAmDatabaseHandler *iDatabasehandler, CAmRouter *iRouter, unsigned int servPort, unsigned int maxConnections)
TAmShPollCheck< CAmTelnetServer > telnetCheckCB
bool dispatchData(const sh_pollHandle_t handle, void *userData)
SPDX license identifier: MPL-2.0.
TAmShPollDispatch< CAmTelnetServer > telnetDispatchCB
TAmShPollFired< CAmTelnetServer > telnetReceiveFiredCB
This class is used to send data to the CommandInterface.
void receiveData(const pollfd pfd, const sh_pollHandle_t handle, void *userData)
TCLAP::ValueArg< unsigned int > maxConnections("m","maxConnections","Maximal number of connections for telnet", false, MAX_TELNETCONNECTIONS,"int")
TAmShPollFired< CAmTelnetServer > telnetConnectFiredCB