25 lines
460 B
C++
25 lines
460 B
C++
#ifndef MODBUS_SERVICE_WORKER_H
|
|
#define MODBUS_SERVICE_WORKER_H
|
|
|
|
#include "Thread.h"
|
|
#include "SynchronousSocket.h"
|
|
#include "liblog.h"
|
|
|
|
using namespace ftc;
|
|
|
|
class ModbusServiceWorker : public Thread
|
|
{
|
|
int socket;
|
|
SynchronousSocket s;
|
|
LogFile *log;
|
|
|
|
int GetInt(const std::string &s);
|
|
protected:
|
|
virtual void Run();
|
|
public:
|
|
ModbusServiceWorker(int socket, LogFile *log);
|
|
virtual ~ModbusServiceWorker();
|
|
};
|
|
|
|
#endif
|