16 #ifndef DABC_SocketDevice
17 #define DABC_SocketDevice
20 #include "dabc/Device.h"
26 class SocketProtocolAddon;
Represents command with its arguments.
Base class for device implementation.
Specialized vector with pointers.
Provides command channel to the dabc process.
Device for establishing socket connections
void ServerProtocolRequest(SocketProtocolAddon *proc, const char *inmsg, char *outmsg)
bool ProtocolCompleted(SocketProtocolAddon *proc, const char *inmsg)
void DestroyRec(NewConnectRec *rec, bool res)
std::string StartServerAddon()
PointersVector fProtocols
int HandleManagerConnectionRequest(Command cmd)
virtual int ExecuteCommand(Command cmd)
Main method where commands are executed.
virtual double ProcessTimeout(double last_diff)
virtual const char * ClassName() const
Returns class name of the object instance.
bool CleanupRecs(double tmout)
void RemoveProtocolAddon(SocketProtocolAddon *proc, bool res)
SocketDevice(const std::string &name, Command cmd)
NewConnectRec * _FindRec(const char *connid)
std::string fCmdChannelId
virtual std::string RequiredThrdClass() const
Method returns name of required thread class for processor.
void AddRec(NewConnectRec *rec)
const char * typeSocketThread
const char * typeSocketDevice